# Need help for Headless execution in Chrome Browser

**URL:** <https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [March 24, 2023, 10:43am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226 "2023-03-24T10:43:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![upyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/upyati/32/22831_2.png) [@upyati](https://forum.katalon.com/u/upyati)\
**Post date:** [March 24, 2023, 10:43am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/1 "2023-03-24T10:43:10Z")

</div>

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)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/6/e61f4adfff4bf33b4545f556ee36172ae7af93ad.png)

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [March 28, 2023, 5:05am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/2 "2023-03-28T05:05:13Z")

</div>

Hi,

Are you trying to test setText to that input area (1) or click to a button to submit (2)?

- If (1), please try [[WebUI] Set Text | Katalon Docs](https://docs.katalon.com/docs/create-tests/keywords/keyword-description-in-katalon-studio/web-ui-keywords/webui-set-text)
- If (2), can you please add [[WebUI] Wait For Element Clickable | Katalon Docs](https://docs.katalon.com/docs/create-tests/keywords/keyword-description-in-katalon-studio/web-ui-keywords/webui-wait-for-element-clickable)?

---

<div class="post-metadata">

**Author:** ![upyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/upyati/32/22831_2.png) [@upyati](https://forum.katalon.com/u/upyati)\
**Post date:** [March 28, 2023, 6:04am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/3 "2023-03-28T06:04:42Z")

</div>

Hi Elly,

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.

Thanks.

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [March 28, 2023, 8:48am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/4 "2023-03-28T08:48:27Z")

</div>

Oh, have you tried it successfully with GUI browser?

---

<div class="post-metadata">

**Author:** ![upyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/upyati/32/22831_2.png) [@upyati](https://forum.katalon.com/u/upyati)\
**Post date:** [March 29, 2023, 10:27am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/5 "2023-03-29T10:27:09Z")

</div>

Hi Elly,

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).

Thanks.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [March 29, 2023, 12:03pm UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/6 "2023-03-29T12:03:33Z")

</div>

> [@upyati](#):
>
> Value - String(–window-size=300,400)

are you sure this is big enough?

---

<div class="post-metadata">

**Author:** ![upyati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/upyati/32/22831_2.png) [@upyati](https://forum.katalon.com/u/upyati)\
**Post date:** [March 31, 2023, 11:09am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/7 "2023-03-31T11:09:10Z")

</div>

Hello All,

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.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/0/a/0a921926063d7f110fad56fd2fe33be9ac78cca1.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [March 31, 2023, 2:36pm UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/8 "2023-03-31T14:36:07Z")

</div>

> [@upyati](#):
>
> Please check this. This solution is worked for me.

Therefore, kindly mark this topic with the “solution” check mark  
Thank you.

---

<div class="post-metadata">

**Author:** ![ducta](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ducta/32/23870_2.png) [@ducta](https://forum.katalon.com/u/ducta)\
**Post date:** [July 19, 2023, 11:15am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/9 "2023-07-19T11:15:18Z")

</div>

Hi Elly\_Tran  
I try to get atribute to input\_box in headless but value is **‘‘null’’**

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [July 24, 2023, 4:30am UTC](https://forum.katalon.com/t/need-help-for-headless-execution-in-chrome-browser/86226/10 "2023-07-24T04:30:47Z")

</div>

Hi,

Sorry for late response. Next time, please use @ to mention me, so that I will be notified.

In terms of your issue, I found this interesting discussion: [Get Attribute as null while there is value? - #13 by Brandon\_Hein](http://forum.katalon.com/t/get-attribute-as-null-while-there-is-value/19532/13). Hope this help.
