# Watir element intercepted:

**URL:** <https://www.ruby-forum.com/t/watir-element-intercepted/260484>\
**Category:** Uncategorized\
**Created:** [November 17, 2020, 2:29pm UTC](https://www.ruby-forum.com/t/watir-element-intercepted/260484 "2020-11-17T14:29:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggenovez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@ggenovez](https://www.ruby-forum.com/u/ggenovez)\
**Post date:** [November 17, 2020, 2:29pm UTC](https://www.ruby-forum.com/t/watir-element-intercepted/260484/1 "2020-11-17T14:29:23Z")

</div>

Hi all,

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

```auto
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

 Add To Cart 
 –

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

[![Google Photos](https://lh3.googleusercontent.com/pw/AJFCJaUQa_lAMpLA-fUSGW0bevvYJgv6OzGdqDPFCYHvQjDucYUoKbQ2g8e3TwaXL7Ri2FeADlkhvER9tXF_BsXo9GVjVdNWjpmERB-h4UiWmZF7og5UgYsv=w351-h286-p-k "New item by George Genovezos") ](https://photos.google.com/share/AF1QipOGmSdUyDCXofbHlX8hMuNdWeM_suHKUm2ayr1gvIYQt2TUZk9jWire7jfniba6rw?key=S1laQm1nS1pNc2NhaXhlUDRtaEkxdk9nMGE0V1R3)

I’m new to ruby/watir so any help would be greatly appreciated.
