Hello all, Can anyone help me with my concern below :
I am trying to execute my Automation script through Headless execution by configuring it from ‘Desired Capabilities’ in Project → Settings.
After Run, my script got failed saying that, ‘Caused by: org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element is not clickable at point (164, 383). Other element would receive the click: …’ for the line where I have passed a ‘Click’ statement for the button.
I have tried the element is to be clicked by changing the locators as well such as Attributes, Xpath, CSS selector, But no use.
Please suggest the resolution for the same so that I can go ahead on this.
Desired capabilities configuration :
Name - args
Type - List
Value - String(–window-size=300,400)
Thanks for your reply, Yes, I am trying the Click event on a button(Login) in which I have already provider ‘Wait for Element Clickable’(Same as your input) for the same button where I want to click.
But, It is not clicking on Login button by passing an error msg as ‘Element Click Intercepted and other element would receive the click’ in ‘Headless’ mode.
Pls suggest.
It’s properly working with the GUI Browser, When I run with a GUI browser, my script is properly clicking the ‘Login’ button on screen. But when I tried it in ‘Headless’ mode, it is not working as per expectations(Pls refer screenshot above).
I have tried this issue by changing the resolution of screen in Project–>Settings–>Desired Capabilities(Headless) mode as below.
Please check this. This solution is worked for me.