Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
raj_s
Posts : 1
Join date : 2010-03-25

dialog - How to handle the dialog box through the Selenium RC using C#? Empty 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!
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

dialog - How to handle the dialog box through the Selenium RC using C#? Empty 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
Back to top
Permissions in this forum:
You cannot reply to topics in this forum