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 : 2338
  • Numbers of messages : 6053
  • Numbers of users : 5038
  • Numbers of points : 141
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
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
hi guys I have some tests made with selenium IDE but I want to be able to test in other browsers too so can anyone help me with a guide how to configure java and webdriver (im using netbeans) and convert my tests in java i tried to export my test as
Forums from same category