Reputation: 1
I have a Karate feature file where I use robot.input('' + Key.ENTER)
to interact with a confirmation dialog:
* robot {}
* robot.retry(20).waitFor("//*{^Are you sure?}")
* robot.input('' + Key.ENTER)
* robot.retry(20).waitFor("//*{^Delete successfully}")
* robot.input('' + Key.ENTER)
However, when I run the .feature
file, the robot.input('' + Key.ENTER)
at line 3 is often skipped, causing the waitFor("//*{^Delete successfully}")
to retry 3 times and eventually fail.
I tried replacing robot.input('' + Key.ENTER)
with:
robot.dialog(true, '')
or
* dialog(true, '')
But neither of them worked.
Any help would be greatly appreciated.
Upvotes: 0
Views: 34