c# - Selenium - Modal dialog present - how to accept information? -
i have following problem. after submit date on page have modal dialog on picture:
i want click "enter" go through modal not work. have following code:
driver.findelement(by.cssselector("input.submit")).click(); actions action = new actions(driver); action.sendkeys(openqa.selenium.keys.enter);
after click on continue manually test go next page. must go through modal continue test. ideas how solve problem?
i found solution following code:
ialert alert = driver.switchto().alert(); alert.accept();
it works me.
Comments
Post a Comment