Example Selenium RC Batch File

Use notepad to create a file named whatever you like, but using the .bat file extension. i.e.,

myexamplebatchfile.bat

Copy and paste the code below into the file:

START java -jar C:\selenium\selenium-server-standalone-2.31.0.jar -port 4445 -firefoxProfileTemplate "C:\ffprofiles\selenium" -htmlSuite "*chrome" "http://www.google.com" "C:\path\to\script\suite-exampletests.html" "C:\path\to\script\report\report.html"

Using Selenium Locators

TARGETING ELEMENTS WITHIN A HTML DOCUMENT


With the Selenium IDE, there are various ways of targeting an element or groups of elements within the HTML document.

In this course, I would focus mainly on the methodologies that are most efficient.

Whenever possible, it is strongly recommended to stay away from using unstable element locators such as xpaths to target elements
on the page. Xpaths are considerably fragile because minimal changes in the structure of the HTML document could render current targeting queries

Selenium Reference

Selenium Reference

  1. Concepts
    1. Element Locators
    2. Element Filters
    3. String-match Patterns
  2. Selenium Actions
  3. Selenium Accessors
  4. Parameter Construction and Variables
  5. Whitespace Rules
  6. Extending Selenium

Concepts

Pages