0

I want to handle pop up that coming after submitting the data on a page, pop up like OK And Cancel . (in Java )

Please check attached image

Note: i tried Alert and this #8244723

Thanks pop up like attached image

bot13
  • 99
  • 1
  • 15
  • 3
    Possible duplicate of [Alert handling in Selenium WebDriver (selenium 2) with Java](http://stackoverflow.com/questions/8244723/alert-handling-in-selenium-webdriver-selenium-2-with-java) – optimistic_creeper Jan 04 '17 at 10:24
  • thanks , but this is not solving my issue. any way to handle pop up by Robot class or Mouse Event – Rakesh Sharma Jan 04 '17 at 10:32

1 Answers1

1

You can use following one line code when that pop will arise:

driver.switchTo().alert().accept();
Maninder
  • 164
  • 6