Help with one driver instance across multiple tests

FussyQBert at 19h45
13
May
2011
Help with one driver instance across multiple tests

I'm using TestNG and Selenium 2 to test my companies web application. I want to use one global instance of driver, so a new browser does not have to be opened every test. I was able to get this to work in Selenium 1, although everything in Selenium 1 took a lot more work Smile

Pseudocode:

class {
global driver;

@BeforeMethod
method initDriver() {
if(driver == null) {
driver [......]
About
This topic belongs to the forum
  • Numbers of topics : 2330
  • Numbers of messages : 6044
  • Numbers of users : 5007
  • Numbers of points : 243
Similar topics
Hi How can we open multiple tabs and put the url in all the tabs invoked in webdriver selenium. Please Help
Hi, I am new to selenium. I need to execute the same test case in multiple browsers simultaneously. Is it possible to done with the latest version of selenium? Please can anybody help me in this? Thank you, Vijay
How to run my selenium web driver tests in safari?
I went for my followup appointment to my new neurologist today (I just moved from IA to FL). I had an MRI, MRA, carotid doppler, blood tests, etc. I expected him to tell me the same thing as all the other docs in the past have said, it JUST migraines.
I've had the usual CT scan, MRI, EEG, blood work for just about everything including lymes disease ect. What else is there? Is there any point in checking for a PFO? Intracranial hypertension? Anything else? I'm just looking for answers...tired of
Forums from same category
  • this is all about some issues in school

  • General LCD discussion. Non-LCD invited on occasion to meet and discuss.

  • nimbuzz hacking

  • Download apps, complete surveys, watch videos and more! Earning is easy...getting a gift card is even easier! Extensive reward catalog contains a variety.

  • Class graded discussion of novel

  • 1337s forums. Microsoft DaRT download for Windows. Windows 10 DaRT download and more.