Mastering XPath for Selenium Test Automation

Mastering XPath or CSS is essential for the Selenium test automation engineers to locate dynamic web elements. It is noted that new Selenium automation engineers do not pay much attention to master location strategies. This leads to failure of test automation efforts when web pages with dynamic contents are automated. Most of the testers rely on extracting the XPaths from Firebug/Firepath like tools. The tools cannot be used directly for dynamic web elements. We will discuss XPath in detail with examples. XPath for locating Web Elements I have my own way of introducing  (explaining) XPath to the trainees in my training sessions. When A=B and B=C. I ask the students what can be derived from these expressions. Immediately they reply with A=C. Then I give following two statements XPath Continue Reading >>