Alert handling (Java)

metman at 22h06
01
Apr
2010
Alert handling (Java)

Hello, I've been working with Selenium in Java, and have come across a question for which the JavaDocs are wanting. For the getAlert() method, the docs say that if an alert is not detected, the method "fails". What is the failure behavior? Does it assert? Throw an exception? What?

I'm looking to write some code that enters data in to a form (credit card info), and on that form, if the user attempts to enter, for instance, characters in to the credit card number [......]
About
This topic belongs to the forum
  • Numbers of topics : 2331
  • Numbers of messages : 6045
  • Numbers of users : 5010
  • Numbers of points : 257
Similar topics
Hi, one of the selenium user faces the following problem: I am using selenium rc with testNG java. I am a new user of selenium.When I upload my test URL it is giving me a security alert in iexplore. Can anyone provide me the code to handle this
Hi I want to access a webtable and its elements based on row and column. Can anyone post a piece of code handling webtables.
Hello, Can we check AJAX calls or java objects directly using selenium. I will not have access to UI and need to test the AJAX calls and the response we get. Regards, Amol
I am stuck with capturing the alert message. The Scenario is: I have a form with input fields like CaseType(listbox), Lab(listbox), LastName(txtbox), FirstName(txtbox)... along with couple of other fields as well. After entering all the fields,
When I recorded an script with alerts the Selenium IDE save the command assertAlert with the message of that alert in target. When I play this script this command fails and the button OK isn't pressed! Both in Selenium IDE or Selenium
Forums from same category