Error on "Choose ok on next confirmation"

98 views
Skip to first unread message

Yuri Santos

unread,
Sep 6, 2018, 2:11:07 PM9/6/18
to Selenium Users
Hi, i am trying to run a simple test with 2 steps:
1. choose ok on next confirmation
2. Click at some button that open a prompt confirmation


Expected results: open prompt and selenium ide choose the ok option to proceed to another steps

what happen: selenium ide is giving the following error:
"1. chooseOkOnNextConfirmation on ... Failed:

e is undefined"


I am not getting whats going on, yesterday i was able to run tests with this command.


Informations:
Selenium IDE 3.3.1
Firefox 61.0.2
Mac OS X 10.13


sachin patil

unread,
Sep 7, 2018, 12:11:24 AM9/7/18
to seleniu...@googlegroups.com
You can use bello alert method.

Driver.switchTo().alert.accept();

Driver.switchTo().alert.dismiss();

Otherwise find element from that popup and click.



Help me know if this works.




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b280538e-9b4f-4fec-8ac4-6d8d30479132%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yuri Santos

unread,
Sep 10, 2018, 12:10:50 PM9/10/18
to Selenium Users
Hi Sachin. Thanks for the response

I am using selenium IDE plugin on firefox, how can i call these functions you are mentioning?

Vikas Thange

unread,
Sep 10, 2018, 9:24:04 PM9/10/18
to seleniu...@googlegroups.com
Hi Yuri,

Can you please share your locator , and code snippet with me on vikas...@gmail.com, I can help you.

About Me: I am automation testing expert for web and mobile with 8 years of experience. I love helping people in my free time. I also share Sutomation testing videos on my youtube channel for helping people to learn automation testing free of cost. Subscribe to my channel here: https://www.youtube.com/channel/UCfqWIItuklKkFWIUr6DHFEw

Thanks,
Vikas Thange.

Reply all
Reply to author
Forward
0 new messages