Display results as :

Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


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