Sunday, 15 March 2015

webdriver - Xpath select parent element using inner text -



webdriver - Xpath select parent element using inner text -

<div> <input type="checkbox" data-bind="checked: isselected"> select box </input> </div>

hi attempting select checkbox using innertext within xpath no luck far. illustration know next not work: //input[contains(text(), ' select box')]

any suggestions right syntax please? note, needs include innertext.

thanks

your code works (tested xpathpatherizernpp):

//input[contains(text(),"select box")]

xpath webdriver

No comments:

Post a Comment