Monday, October 31, 2011

Extending the Default Selenium or What the heck is Default Selenium?

Extending the Default Selenium or What the heck is Default Selenium?, Selenium Notes, Videos, Examples By.www.laxmiroy.blogspot.com/


Calm down!, DefaultSelenium is the base class that you instantiate early on in your test class to get the selenium object which you later use in almost every line of you test script.

.
.
Selenium selenium=new DefaultSelenium("localhost",4444,"*chrome","http://www.google.com/");    
selenium.start();
selenium.open("/");
.
.
.
                  OR              

/*Creates a new DefaultSelenium object and starts it using the specified baseUrl and browser string*/                       
 setUp("http://www.imdb.com/", "*firefox");
selenium.open("/");
selenium.click("nb15go_image");
.
.
.
does that ring a bell? 

No comments:

Post a Comment