Hi, in my company we are jsut starting with automation, we know practically nothing. we are using robotframework, browser library
I need to verify the text and accept this kind of alert
found this
https://marketsquare.github.io/robotframework-browser/Browser.html#Wait%20For%20Alert
but im not understanding how it works, con someone provided me an example?
tried:
${promise} = Promise To Wait For Alert action=accept text=Request Hours exceed available hours. [20.00]
Click id=accept
${text} = Wait For ${promise}
Should Be Equal ${text} Request Hours exceed available hours. [20.00]
but logs return
KEYWORD ${promise} = Browser . Promise To Wait For Alert, action=accept, text=Request Hours exceed available hours. [20.00]
Documentation: | Wrap a Browser library keyword and make it a promise. Returns that promise and executes the keyword on background. |
---|
13:58:55.292 FAIL Test library ‘Browser’ contains no keywords matching name ‘Wait For Alert’.