qahive / robotframework-puppeteer

Puppeteer Web testing library for Robot Framework
Apache License 2.0
56 stars 14 forks source link

Wait for Alert to Fully Show only Handle Alert #172

Closed sss2sssss closed 1 year ago

sss2sssss commented 1 year ago

Is your feature request related to a problem? Please describe. When I tried to do some sample test cases for some of my company legacy site, for some reason when I triggered one element and tried to sleep for few seconds then Handle Alert to Accept, it seems doesn't delay but proceed directly

Describe the solution you'd like Wish to have a hold ability can let the alert to fully show up then only handle the button action

Describe alternatives you've considered Or at least to have some delay function or async to wait the alert animation finish then only handle alert action

Additional context Add any other context or screenshots about the feature request here.

atthaboon commented 1 year ago

@sss2sssss Want to confirm first, Alert that you mention is a Browser alert? image

sss2sssss commented 1 year ago

@sss2sssss Want to confirm first, Alert that you mention is a Browser alert? image

Yeap is the browser alert

atthaboon commented 1 year ago

For bowser alert. The library will not wait but need to handle with async function.

Demo

https://github.com/qahive/robotframework-puppeteer/blob/master/Examples/alert-handler/alert-handler.robot

atthaboon commented 1 year ago

I will close the due to no further feedback. Please feel free to reopen.