Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing browser after test failure #43

Closed
juriejan opened this issue Mar 13, 2012 · 1 comment
Closed

Closing browser after test failure #43

juriejan opened this issue Mar 13, 2012 · 1 comment

Comments

@juriejan
Copy link

When my tests fail, the browser window it ran in doesn't close. What could I be doing wrong?

I think it might have something to do with the fact that the 'testComplete' method doesn't work for me as it is presented in the documentation.

The documentation suggests that I use it like this:

browser
  .chain
  .session()
  .open('/')
  .end(function(err){
    browser.testComplete(function() {
      if(err) throw err;
      done()
    });
  });

The 'done' callback in the previous code never gets called and my test never knows that it was completed.

This is what I currently use:

browser
  .chain
  .session()
  .open('/')
  .testComplete()
  .end(function(err){
    if(err) throw err;
    done();
  });

Any tips?

@juriejan juriejan closed this as completed Dec 2, 2012
@juriejan
Copy link
Author

juriejan commented Dec 2, 2012

When the test fails the chain of commands are exited. Ons should find a way to close the browser in the function that runs after each test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant