- Test Engg
- Posts : 2
Join date : 2012-08-31
Unexpected event handling in webdriver/ selenium
Fri Aug 31, 2012 11:49 am
Is it possible for selenium to wait for an user input if an unexpected
event occurs in the script(like a message box/ new window/ warning /
alert or any other interruption)?
For example if some new functionality is added to the code and when
selenium script is run, the test shouldn't break but should wait for
manual intervention where the condition in the new functionality occurs. The expectation is that any new functionality added to the existing code(by developers) does not break our automation scripts.
event occurs in the script(like a message box/ new window/ warning /
alert or any other interruption)?
For example if some new functionality is added to the code and when
selenium script is run, the test shouldn't break but should wait for
manual intervention where the condition in the new functionality occurs. The expectation is that any new functionality added to the existing code(by developers) does not break our automation scripts.
- sreekumarActive particpant
- Posts : 16
Join date : 2011-12-27
Age : 39
Location : Hyderabad
Re: Unexpected event handling in webdriver/ selenium
Wed Sep 12, 2012 4:37 pm
If you want to use Alert ,messge box by using below code you can do that.Alert alert = driver.switchTo().alert();
// Get the text of the alert or prompt
alert.getText();
// And acknowledge the alert (equivalent to clicking "OK")
alert.accept();
// Get the text of the alert or prompt
alert.getText();
// And acknowledge the alert (equivalent to clicking "OK")
alert.accept();
- How to use MouseOver event in Ruby script using Selenium Webdriver
- Selenium click event does not trigger angularjs event
- I downloaded and installed Selenium WebDriver Jar files in my Eclipse, but still i am facing issues and couldn't run the webdriver scripsts.
- Selenium IDE generated testcase script is not working in Selenium Webdriver
- Selenium webdriver Error - "Could not contact Selenium Server".
Permissions in this forum:
You cannot reply to topics in this forum