selenium chromedriver - How to write xpath for a button with class attribute? -


i have started working on selenium-ruby . html looks this-

<button class="check column btn btn-invisible">    <i class="icon-column-p"></i>     "check column" </button> 

i want click on button, best xpath access it?

thanks!

you can test against text of button with:

//button[contains(., '"check column"')] 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -