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

org.openqa.selenium.ElementClickInterceptedException: element click intercepted error using Selenium and Java in headless mode

$
0
0

I have a project that I am working on with java and selenium.the test work OK in UI mode.However in headless mode I get this error

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <label _ngcontent-yrc-c26="" formcontrolname="reportingDealPermission" nz-checkbox="" class="ant-checkbox-wrapper ng-untouched ng-pristine ng-valid" ng-reflect-name="reportingDealPermission">...</label> is not clickable at point (161, 562). Other element would receive the click: <div _ngcontent-yrc-c26="" class="footer">...</div>

how can I resolve this issue (working in UI mode). this is my code

WebDriver driver = getWebDriver();        WebElement element;        Thread.sleep(60000);        element = driver.findElement(By.xpath("//label[@formcontrolname='reportingDealPermission']"));        element.click();

why in selenium there is no operation to move to the element and break all layers. this is the UI.this is working in UI mode not working in headless mode, made sleep for 6 minutes and not resolved so this is not time issue

enter image description here


Viewing all articles
Browse latest Browse all 97968

Trending Articles



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