Payam Fard
2018-12-01 02:51:55 UTC
Hi,
Here is the code snippet I have:
Alert promptAlert = driver.switchTo().alert();
Thread.sleep(4000);
promptAlert.sendKeys("Accepting the alert");
It works perfectly fine in Firefox, but in Chrome does not work. I am using Gecko
driver version 0.23.0, Chrome driver version 2.43.0.
Any help would be appreciated.
Here is the code snippet I have:
Alert promptAlert = driver.switchTo().alert();
Thread.sleep(4000);
promptAlert.sendKeys("Accepting the alert");
It works perfectly fine in Firefox, but in Chrome does not work. I am using Gecko
driver version 0.23.0, Chrome driver version 2.43.0.
Any help would be appreciated.
--
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/5932201f-3684-4777-9138-16f7f66a091d%40googlegroups.com.
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/5932201f-3684-4777-9138-16f7f66a091d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.