Sunday 10 March 2013

Conversion Explained

Lets view the orignal java file that Selenium IDE exported for us


Now lets view the java file that the conversion has generated for us

The conversion process will firstly if it already does not exist create our package, which in this case is called com.example.tests

Secondly,creates a java file that is compatable with the hareness of the project with our orignal selenium commands that are present in the orignal exported file, which in this case were

                selenium.type("id=gbqfq", "WebDriver API");
                selenium.click("id=gbqfb");


Finally, It places an annotation at the class level defining what browser that this test file should run against.

  
 

 

No comments:

Post a Comment