Tagged Questions
0
votes
2answers
355 views
Unable to fetch URL of window containing an alert box while using selenium webdriver
I am using selenium webdriver + java + eclipse + testng for my automation scripts.
I am trying to get the URL of window which contains an alert box.
On clicking download button on a webpage, it ...
1
vote
0answers
49 views
Selenium's alert.getText() returns null
My scenario is that I have 2 windows, and the 2nd one shows an alert dialog of which I wanna check it's text.
Now I switch my WebDriver to the second window via:
...
1
vote
0answers
241 views
Selenium 2 (webdriver) chromedriver cannot find alert for Chrome 29
After Chrome's last release (Version 29.0.1547.66 m) chromedriver cannot find the new chrome alerts. For the previous versions everything worked fine. I also updated the selenium version to 2.9.0 and ...
1
vote
0answers
746 views
WebDriverBackedSelenium: confirmation handling throws: UnsupportedOperationException
I using WebDriverBackedSelenium to handle confirmation dialogues and alerts in my tests
WebDriver driver = new FirefoxDriver();
driver.get("https://uat03.testnet.com/uat03/main.asp");
...
0
votes
0answers
75 views
Handling open Alert from jquery.are-you-sure.js in RSpec and Capybara
Using jquery.are-you-sure.js https://github.com/codedance/jquery.AreYouSure in RSpec tests with Capybara, I was getting an error raised after each example that modifies a form but doesn't save it:
...
0
votes
0answers
46 views
How to display the alert box using selenium ?
Need to display the alert box and click OK while running the script.
I have used javascript alerts.
Eg:
function validateMob(val) {
var temp = val.trim();
if (temp == null || temp == "") {
...