Ask a Question

Browser alert popup not found when running headless, no issues non-headless

nastester
Regular Contributor

Browser alert popup not found when running headless, no issues non-headless

I am running into an issue when running my Keyword test headless, a browser alert that occurs is not recognizable by TestComplete so I can't assert the message.

Clicking the 'Ok' button on the alert seems to still work fine.

 

When running not headless, TC can assert the message on the alert with no issues. 

What can be done about this? 

 

 

6 REPLIES 6
Marsha_R
Champion Level 3

Is running headless and not-headless happening on the same machine?

nastester
Regular Contributor

Yes same machine for now for testing purposes. Ultimately would be running on another machine though. Haven't tried to reproduce the problem on the other machine but I can try that. 

What version of TestComplete are you running? Did you recently do an update?

 

Did this test ever work for you? If so, what version did it work on?

nastester
Regular Contributor

Latest version of TC (15.55.53.7). I have never run this test headless before. In the process of converting some tests to run headless and noticed this.  It has worked non-headless for some time (and continues to).

Can you try recording just a small test that gets the popup and tries to do the assertion and see what happens?

nastester
Regular Contributor

Getting the same thing unfortunately.

 

alert_error.PNG

cancel
Showing results for 
Search instead for 
Did you mean: