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
Post a Comment