New guy here and could use some help
I’m trying to click on a button that contains the words “Add To Cart” using ruby/watir.
If I use
cart = browser.link(text: 'Add To Cart') if cart.present? cart.click
It works (item gets added to cart) but I get
<div id="section_list_wishlists" class="facetSelectContainer" role="group" aria-expanded="true" aria-labelledby="section_button_wishlists">...</div> is not clickable at point (441, 20). Other element would receive the click: <div class="row">...</div> (Selenium::WebDriver::Error::ElementClickInterceptedError) (Session info: chrome=86.0.4240.198)
here is the element I’m trying to read
What I’m having a hard time understanding is how the two elements are related. I’m searching for “Add to Cart” and the offending element has nothing like that
I’m new to ruby/watir so any help would be greatly appreciated.