Do you have questions ? We got the answers!

Ask a question:

0
Browser do not get launched if I use WebDriver launch and close code with BeforeTest & AfterTest annotations.

Open 0 Answers 52 Views

If I launch browser before test method and close after test method using TestNG annotations @BeforeTest and @AfterTest it works only for 1st Test method. For 2nd test method browser is not launched.

3Comments
commented Nov 29, 2016 by stbadmin (4,970 points)
can you post the error you are getting by replying to this comment?
commented Nov 30, 2016 by kanishkajadhav (82 points)
Not able to Enter --- The FirefoxDriver cannot be used after quit() was called.
commented Dec 1, 2016 by stbadmin (4,970 points)
Can you post your @BeforeTest method by replying to this comment? It looks like you have a problem with initiating the browser.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 433 pointsSunilBhaskar

    41 questions 15 answers32 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 363 pointssumitkumarwatts

    0 questions 13 answers0 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments

...