Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

Open 0 Answers 52 Views
0 0

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.

commented Nov 29, 2016 by stbadmin (192 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 (192 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.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors