on-internet
← Community

ruby selenium click on button with class name

Stack Overflow ·

I'm using ruby and selenium to test a web page, with the two buttons below <div class="AVdis"> <span class="gwt-InlineHTML"/> <a class="AVcur" name="attendEdit"; font-size: 12px;">[edit]</a> </div> <div class="lineHeight"> <button type="button" class="pcbtn" style="display: inline-block;">yes</button> </div> I've tried to use driver.find_elements(:class, 'AVcur').click driver.find_elements(:class, 'pcbtn').click but it doesn't work, please advise. Thanks updated the full HTML code(the part code of class 'pcbtn' ONLY, it doesn't include the part with class 'AVcur'.): <body> <iframe src="javascr

Comments

Sign in or sign up to comment and upvote.

No comments yet.