selenium - xpath locator not work as expected to locate a "<a" element with compound class name -
selenium - xpath locator not work as expected to locate a "<a" element with compound class name -
this line not work think have used right xpath?
driver.findelement(by.xpath("//a[contains(@class,'cke_button_bold')]")).click(); to locate button below :
<a id="cke_73" class="cke_off cke_button_bold"> id dynamic number can used fixed locator here. , class compound class not supported webdriver findelement method...
i created simple html file , xpath works firefoxdriver in webdriver 2.1.0. can seek use
driver.findelement(by.classname("cke_button_bold")) classname supported webdriver api
xpath selenium webdriver
Comments
Post a Comment