Selenium2: C#/NUnit: Alert window problem.

pamopl at 22h53
31
May
2011
Selenium2: C#/NUnit: Alert window problem.

Hi all , I have question about alert window. I would like check if the
text on the alert window is correct. I have following part of code (I'm using c# and NUnit):

_driver.Navigate().GoToUrl("http://page");
IWebElement inafns = _driver.FindElement(By.Id("sc_Infants"));
inafns.SendKeys("9");
inafns.Clear();

(below part of codes is correct and working)

Alert window:
About
This topic belongs to the forum
  • Numbers of topics : 1155
  • Numbers of messages : 3119
  • Numbers of users : 2125
  • Numbers of points : 1359
Similar topics
Hi Everyone Nice to See an active Selenium Forum. Previously i used This in JAVA but now the client require that in C# but iam new to C#..i never used..even i tried to run some tests by learning from the net. Now i have a big test to do this
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?
Code: <body> <div id="main">  <div id="btn">Load Popup</div>  <div id="backgroundPopup"></div>  <div id="popupContact">   <a
Hi, I am new to selenium and automation. In our applications we have an alert msg used..getalert() Once the record is added ,we get an alert msg saying record added with ok button.When i am recording this event of clicking on oK button on the alert
Hi all, My script is running fine in C#, but when run in NUnit, Error Message= "Service Unavailable" is showin. Could anyone help me to continue my process, please..? NB: Network connection is not disabled
Forums from same category
See also
more_less
Informations

1 Replies For the topic :
"Selenium2: C#/NUnit: Alert window problem."

This topic has been viewed 639 times.

Last message :
31/05/2011 at 22h53 by "pamopl"