Forum Discussion

huabing's avatar
huabing
Occasional Contributor
3 years ago

Close prompt action

Hello!

There are always prompt when performing GUI tests, but using following action fails because the object cannot be found. 

page = Aliases.browser.Page(*)
page.Prompt.Button("OK").Click()

Whether recording keyword tests or script tests, there is no actions that handle the prompt displayed. Cannot locate any prompt elements either.

Does any other solution to solve prompt?

Browser: Microsoft Edge Version 100.0.1185.50 (Official build) (64-bit)

Error log:

 

5 Replies