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
Champion Level 3

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

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
Champion Level 3

What version is your Chrome?

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
Champion Level 3

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

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

LC
Occasional Contributor

Thanks, I will try 99 out.

cancel
Showing results for 
Search instead for 
Did you mean: