xpath=xpathExpression: Locate an element using an XPath expression
Examples:
xpath=//img[@alt='The image alt text']
xpath=//table[@id='table1']//tr[1]/td[2]
xpath=//a[contains(@href,'#id')]
xpath=//a[contains(@href,'#id')]/@class
xpath=(//table[@class='Selenium'])//th[text()='IDE']/../td
xpath=//input[@name='name' and @value='yes']
xpath=//*[text()="Selenium"]
No comments:
Post a Comment