Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to handle the dialog box through the Selenium RC using C#?

View previous topic View next topic Go down

How to handle the dialog box through the Selenium RC using C#?

Post by raj_s on 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!

raj_s

Posts : 1
Join date : 2010-03-25

Back to top Go down

Re: How to handle the dialog box through the Selenium RC using C#?

Post by Adviser on 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

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum