Ask a Question

Issue handling Alert in Headless mode

LC
Occasional Contributor

Issue handling Alert in Headless mode

I am having issues recognizing an alert window in Headless mode during my web testing. Here is the alert on my page:
rejection popup.png

When running not in headless mode I can interact with the Alert with either:
Aliases.browser.pageKruxmetrixHome.Keys("[Enter]");
or
NameMapping.Sys.browser.pageKruxmetrixHome.Alert.buttonOk.ClickButton();

But both of these fail when running headless, I am seeing these errors: 

 

error enter key.png

 

 

error alert.png

Nothing I have tried so far has allowed me to interact with the alert window in headless mode so I would appreciate any ideas, thank you.

7 REPLIES 7
Marsha_R
Community Hero

What version of TestComplete are you using and what browser and version are you using?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
LC
Occasional Contributor

Duplicate reply

LC
Occasional Contributor

I'm using TestComplete 15.40.421 with Chrome and in headless using the ChromeDriver 102.0.5005.61

Marsha_R
Community Hero

What version is your Chrome?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
LC
Occasional Contributor

Right now Version 103.0.5060.114 but I was getting this same issue with 102.0.5005.***  Also have tried upgrading my chromedriver to 103.0.5060.53 but I am getting the same result when running the test.

Marsha_R
Community Hero

Right now, TestComplete only supports Chrome up to version 99.  

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/supported-browsers-and-techn...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
LC
Occasional Contributor

Thanks, I will try 99 out.

cancel
Showing results for 
Search instead for 
Did you mean: