Unable to Close Firefox Browser at the end of all the Tests

I am using Junit for Unit Testing with Selenium . After all the tests have been executed, I want the Firefox Browser to close , which I have done it by using
driver.quit in the AfterClass Annotation. But still I see that my browser is not closing.Please help.

Default Asked on March 15, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Try driver.close()

    Default Answered on March 16, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.