Closed gish closed 10 years ago
Casper always binds this
to itself, so what you want is:
describe "localhost", ->
casper.start "http://localhost/", ->
@viewport 1000, 1000
it "can be opened", ->
test = @test
casper.then ->
@echo test.title # or test.fullTitle()
expect(casper.currentHTTPStatus).to.equal 200
Thanks!
Description
Accessing the
this.test
property in a test results in errorReproduce
Run the following test
Expected behavior
Casper shouldn't throw any errors.