Alert not found in 10 seconds error, using Robot Framework RIDE

Viewed 439

I'm having an issue when trying to pass or handle a Javascript-based alert to accept changes during automation

Here is the code:

wait until element is visible    ${submit_job_btn}
wait until element is enabled    ${submit_job_btn}
mouse down    ${submit_job_btn}
mouse up    ${submit_job_btn}
sleep    5s
alert should be present    Do you want to Schedule this job    Accept    10s
wait until page contains    Job successfully scheduled
close browser.

I have tried the "handle alert" keyword, with the same error, note that the first submit button had different issues, where it overlapped with the page footer. so the workaround I found was to use the "mouse down"/"mouse up" to simulate clicking the button and it passed, but the alert afterward always comes back as not found.

0 Answers
Related