- raj_s
- Posts : 1
Join date : 2010-03-25
How to handle the dialog box through the Selenium RC using C#?
Thu Mar 25, 2010 1:55 am
Hi All,
I am in
process scripting using C# in Selenium RC for we application. While browsing
the application I come across different dialog box e.g. dialog box with option
Save and Cancel, window to select file to upload any file etc.
Selenium
is unable to recognize the same.
To
overcome this, I tried using AutoIT to handle the window utility and dialog
box. I created .exe file using AutoIT and tried to invoke through C# script
using following piece of code:
System.Diagnostics.Process.Start("dialogbox.exe");
But I found the control do
not go to the dialog box or window utility and NO action is performed.
I am looking for a urgent
solution for this issue.
Please suggest regarding
this.
Thanks!
I am in
process scripting using C# in Selenium RC for we application. While browsing
the application I come across different dialog box e.g. dialog box with option
Save and Cancel, window to select file to upload any file etc.
Selenium
is unable to recognize the same.
To
overcome this, I tried using AutoIT to handle the window utility and dialog
box. I created .exe file using AutoIT and tried to invoke through C# script
using following piece of code:
System.Diagnostics.Process.Start("dialogbox.exe");
But I found the control do
not go to the dialog box or window utility and NO action is performed.
I am looking for a urgent
solution for this issue.
Please suggest regarding
this.
Thanks!
Re: How to handle the dialog box through the Selenium RC using C#?
Thu Mar 25, 2010 12:19 pm
hi,
For dialog box handling you have to follow these steps:
1. First you have to make sure dialog box is present or not.
storeAlertPresent ( variableName )
storeConfirmationPresent ( variableName )
2. You have to decide whether click on save or cancel.
chooseCancelOnNextConfirmation ( )
chooseOkOnNextConfirmation ( )
For more details checkout this link:
http://release.seleniumhq.org/selenium-core/0.8.0/reference.html
Hope this will help you. best of Luck.
Bye
For dialog box handling you have to follow these steps:
1. First you have to make sure dialog box is present or not.
storeAlertPresent ( variableName )
storeConfirmationPresent ( variableName )
2. You have to decide whether click on save or cancel.
chooseCancelOnNextConfirmation ( )
chooseOkOnNextConfirmation ( )
For more details checkout this link:
http://release.seleniumhq.org/selenium-core/0.8.0/reference.html
Hope this will help you. best of Luck.
Bye
Permissions in this forum:
You cannot reply to topics in this forum