Sunday, November 13, 2011

Selenium - XPATH - Location Of text...


If we want to click on some text which we dont know the Id,Name
we can use selenium.click("xpath=//*[text()=\"Search\"]")
To be more specific we can use
selenium.click("xpath=//*[@id='ParentDivId']//*[text()='Search']");



No comments: