Getting error as Element is not clickable at point. | Selenium Forum
M
Posted on 27/08/2016
I have written the code as below to expand the button. But getting the error "Element is not clickable at point...." Could you please solve the problem.

WebDriverWait wait = new WebDriverWait(driver, 15);
//new WebDriverWait(driver,60).until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//button[@class='ExpandDown']")));
driver.findElement(By.xpath("//div[contains(@class, 'ActionTitleText-Standard') and text()='Items']"));
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[@class='ExpandDown']"))).click();

Getting the below Error:

org.openqa.selenium.WebDriverException: Element is not clickable at point (252, 44.399993896484375). Other element would receive the click: <div class="blockUI blockOverlay" style="z-index: 1000; border: medium none; margin: 0px; padding: 0px; width: 100%; height: 100%; top: 0px; left: 0px; background-color: rgb(0, 0, 0); opacity: 0.296104; position: fixed;"></div>
Command duration or timeout: 71 milliseconds

Below is the xpath and it is in tag <td> and <div Class>:
.//*[@id='PanelContainer']/div/div/div[3]/div[1]/table/tbody/tr/td[3]/button[1]

<div class="PanelBar Standard inactive">
<table width="100%" border="0">
<tbody>
<tr>
<td style="width: 32px;">
<div class="IconBox graphitems"/>
</td>
<td>
<div class="ActionTitleText-Standard">Items</div>
</td>
<td align="right">
<button class="ExpandDown" type="button" title="Expand"/>
<button class="ExpandUp" type="button" title="Collapse" style="display: none;"/>
</td>

M
Replied on 28/08/2016

there are a lot of reasons for this error.

you'll have to try these methods.

https://www.seleniumeasy.com/selenium-tutorials/element-is-not-clickable-at-point-selenium-webdriver-exception
http://stackoverflow.com/questions/11908249/debugging-element-is-not-clickable-at-point-error#


M
Replied on 29/08/2016

I have tried all these methods but Still it is not working.


M
Replied on 29/08/2016

can i access the website?


M
Replied on 04/09/2016

I have sent my code in Private Messages. Can you please check once.


M
Replied on 04/09/2016

i am not getting any error in the code you send me?


M
Replied on 09/09/2016

But i am getting the below error.

Element is not clickable at point (252, 44.399993896484375). Other element would receive the click: <div class="blockUI blockOverlay" style="z-index: 1000; border: medium none; margin: 0px; padding: 0px; width: 100%; height: 100%; top: 0px; left: 0px; background-color: rgb(0, 0, 0); opacity: 0.298215; position: fixed;"></div>
Command duration or timeout: 80 milliseconds


M
Replied on 14/09/2016

Is the element at bottom of page?
I mean you have to scroll down for it?


M
Replied on 15/09/2016

No. Please see the screen shot in the attachment.

Responsive image

M
Replied on 16/09/2016

check if this is in iframe.


M
Replied on 17/09/2016

Yes. Please see below:

I want to expand the button.

<iframe id="easyXDM_widget8_provider" frameborder="0" name="easyXDM_widget8_provider" src="https://surveys.kenexa.com/gadgets/dataminer?auth_nonce=DJ0sbLRF5LouV4Je&auth_timestamp=1474123399&auth_token=lwYcGOz0xJTLNDU8&project=7213&auth_signature=ByC%2F1fN1xnkrINK6mkIBDMMwkHw%3D&theme=kenexablue&max=1&xdm_e=https%3A%2F%2Fsurveys.kenexa.com%2Fviewpoint%2F&xdm_c=widget8&xdm_p=4" scrolling="no" style="height: 674px;">
<!DOCTYPE html>
<html>
<head>
<body>
<link type="text/css" rel="stylesheet" href="/gadgets/Content/themes/base/jquery-ui-1.7.3.custom.css?v=329309">
<script type="text/javascript" src="/gadgets/scripts/kenexa/minified/kenexa.gadget.dataminer.min.js?v=329309">
<script type="text/javascript" src="/gadgets/scripts/kenexa/KENEXA.data.Scores.js?v=329309">
<script type="text/javascript">
<style>
<div id="gadget" style="margin: 0px auto; padding: 0px; overflow: auto; width: 1509px;">
<div id="gadget-inner" class="gadgetInner">
<div id="DataGroupLibraryBar"> </div>
<div id="BuildlinesLayout">
<table border="0" cellspacing="0" cellpadding="0" style=" margin-left: 8px; margin-right: 8px">
<tbody>
<tr>
<td class="orgMap" valign="top" style="overflow: hidden;">
<div id="PanelContainer">
<div style="width: 280px; background: rgb(35, 35, 35) none repeat scroll 0% 0%; padding-top: 20px;">
<button id="hidebutton" class="Collapsebutton" title="Collapse to icons" style="margin-top: -15px; float: right; margin-right: 5px;"></button>
<div style="margin-right: 10px; background: white none repeat scroll 0% 0%; width: 260px;">
<div class="panelbar">
<div class="panelbar">
<div class="PanelBar Standard inactive">
<table border="0" width="100%">
<tbody>
<tr>
<td style="width: 32px;">
<td>
<td align="right">
<button class="ExpandDown" type="button" title="Expand"></button>
<button class="ExpandUp" type="button" title="Collapse" style="display: none;"></button>
</td>
</tr>
</tbody>


M
Replied on 18/09/2016

use this id=[color=#FF0000:329p6sjx]easyXDM_widget8_provider [/color:329p6sjx]to switch to frame.


and then click on white triangle.