Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

unable to click the kendo dropdown in selenium webdriver

$
0
0

Here is my selenium code:

WebDriverWait fee = new WebDriverWait(driver, 10);
fee.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//span[text()='select']")));
fee.until(ExpectedConditions.elementToBeClickable(By.xpath("//span[text()='select']"))).click();

Here is my HTML code:

<span title="" class="k-widget k-dropdown k-header" unselectable="on" role="listbox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-owns="ddlSaleItem_listbox" aria-disabled="false" aria-readonly="false" aria-busy="false" aria-activedescendant="e30bc773-2592-40f2-aa5f-38850a538cd6"
  style="width: 115%;">
  <span unselectable="on" class="k-dropdown-wrap k-state-default">
  <span unselectable="on" class="k-input"></span>
<span unselectable="on" class="k-select">
  <span unselectable="on" class="k-icon k-i-arrow-s">select</span></span>
</span>
<div id="ddlSaleItem" data-id="" style="width: 115%; display: none;" data-role="dropdownlist"></div>
</span>

I'm getting this kind of error message:

Exception in thread "main" org.openqa.selenium.ElementClickInterceptedException: 
element click intercepted: Element <span un...able="on" class="k-icon k-i-arrow-s">
select</span> is not clickable at point (402, 143). Other element would receive the 
click: <div class="k-overlay" style="display: block; z-index: 10002; opacity: 0.5; 
transition: all 350ms ease-out 0s;"></div>

Viewing all articles
Browse latest Browse all 97778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>