c# - Selenium - Modal dialog present - how to accept information? -


i have following problem. after submit date on page have modal dialog on picture:

enter image description here

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

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -