When using Xpath, confirming the Xpath script is very important to make sure that Selenium IDE, WebDriver or Selenium RC can identify the xpath locator during the test.
QA Engineers can use Xpath Checker to confim xpath. Xpath Checker needs to be installed on Firefox because it is an add on.
For example, on Wikipedia page, there is a link named "English". When using xpath, we can use the script below.
Selenium Xpath Tutorials
Identifying xpath for element with examples to use in selenium
QA Engineers need to provide any element locator(like id, name, css path, xpath etc.) in target column of selenium window to locate that specific element to perform some action on it .If you have worked with selenium IDE then you knows that sometimes elements does not contains id or name. Locating element by xpath is the another way of locating element and you can use it as a alternative of id or name of element.
To add user extensions, open the "Options" menu and select options. On the Selenium IDE Options window, add Selenium IDE extensions.
In some test cases, QA Engineers need to verify text or number patterns by using verifyTextPresent, verifyTitle, verifyAlert, assertConfirmation, verifyText, and verifyPrompt. Selenium locators can utilize pattern to describe special characters, and dynamic texts to verify what text is expected rather than having to specify that text exactly.
There are three types of patterns: globbing, regular expressions, and exact.
Selenium IDE supports the setting of breakpoints and the functionality to start and stop the running of a test case.
Users can run up to a specific command in the middle of the test case and inspect how the test case behaves at that point.
To do this, the user needs to set a breakpoint on the command just before the one to be examined.
When recording test case with Selenium IDE, the default script will be html script. The script can be exported to other programming languages, so that QA engineers can use Java, C#, Ruby, or Python to develop Selenium test framework.
To change the script format, open "Options" menu, select "Format" command, and then choose one of these programming languages from the menu.