Discussion:
[selenium-users] How to hadnle alert as showing in the screenshot?
syam
2018-11-22 13:55:57 UTC
Permalink
Hello All,

I could not able to accept the alter as showing in the screenshot using
below code. Even not able to tke the xpath for this due to an alert.

Please help me on this to click on the upload button.

Alert alert = driver.switchTo().alert();
alert.accept();
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2e17d122-5036-4c36-ab12-26c32f8dd967%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
kpshibi
2018-11-22 14:48:23 UTC
Permalink
Other use javascriptexecutor for accepting the pop Up
Post by syam
Hello All,
I could not able to accept the alter as showing in the screenshot using
below code. Even not able to tke the xpath for this due to an alert.
Please help me on this to click on the upload button.
Alert alert = driver.switchTo().alert();
alert.accept();
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/2e17d122-5036-4c36-ab12-26c32f8dd967%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/2e17d122-5036-4c36-ab12-26c32f8dd967%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALznS1MAO8v%3DgpftT3roN1TFrLrZL85zCVw2uJJvF7zL6Ji9VA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ayush Garg
2018-11-22 14:07:39 UTC
Permalink
You can use sikuli to overcome these situations!
Post by syam
Hello All,
I could not able to accept the alter as showing in the screenshot using
below code. Even not able to tke the xpath for this due to an alert.
Please help me on this to click on the upload button.
Alert alert = driver.switchTo().alert();
alert.accept();
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/2e17d122-5036-4c36-ab12-26c32f8dd967%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/2e17d122-5036-4c36-ab12-26c32f8dd967%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAAPJK0OF1iOJ5%2Bvn-YSS2qhsM0p4i-HdhRVC8%3DR95JhGBD957g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Venu G
2018-11-23 04:22:03 UTC
Permalink
It seems this is part of the website, Can u chk is it a window or alert
popup triggered by javascript code.
Post by syam
Hello All,
I could not able to accept the alter as showing in the screenshot using
below code. Even not able to tke the xpath for this due to an alert.
Please help me on this to click on the upload button.
Alert alert = driver.switchTo().alert();
alert.accept();
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f23a7e82-f733-4ead-a7da-a2a9b80041ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...