HTML Tags
<li class="filter-categ">
<ul class="l-h-list">
<li id="filter__entityBased" class="item filter_value" filter-name="entityBased" search- name="zone/concept/store_based">Zone/Concept/Store based</li>
<li id="entityBased" class="sprite-filter all-filter"></li>
</ul>
</li>
I am trying to click on the element with id=entityBased, but I am getting the error."Error: element is not attached to the page document" Same works fine in Firefox and IE. Problem is seen only in Chrome.
I am using the following code to perform the action.
browser.element(:id => "entityBased").wait_until_present
browser.element(:id => "entityBased").click
My Environment Details
Chrome Version 29.0.1547.66 m Watir-WebDriver (0.6.4, 0.6.2) watir (4.0.2 ruby x86-mingw32)
This is blockin my automation in Chrome. Please help me out in this problem.