Display results as :

Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by


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.

is unable to recognize the same.

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:


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



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


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:

Hope this will help you. best of Luck.



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

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