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 recognize the pop up window during running script

View previous topic View next topic Go down

How to recognize the pop up window during running script

Post by fazlu on Wed Mar 28, 2012 11:50 pm

Hi all,

I create a script by recording a pop window in selenium ide. But when I run the script the pop up window is recognized.

Here is my senario:

I login to the application. I click on a link it opens a pop up window. There is a option to save the window, after save the window I click a link on the window which opens 2nd pop up window( to upload a document). After close the 2nd pop up window I am on the 1st pop up window.

" target="_blank" rel="nofollow">">" xml:lang="en" lang="en">
" target="_blank" rel="nofollow">">

New Test
New Test
open /ABC/login.jsf
type username
type password joe123
clickAndWait btn_login
click nvimenu-8-label
click link= Room
waitForPopUp _new 30000
selectWindow _new
type veridationRoom:roomName Room1
clickAndWait veridationRoom:j_id14
click //form[@id='docListForm']/table[1]/tbody/tr/td/a[1]/img
waitForPopUp uploadDoc 30000
selectWindow uploadDoc
type picture C:UsersDesktoptest.doc
click //input[@value='Upload']
clickAndWait docForm:j_id18
selectWindow _new
selectWindow null
clickAndWait //a[@id='j_id6:Logout']/span

It is recording well. But when I run the script 2nd pop up window is not recognized by selenium ide.

Environment: Firefox3.0 and selenium ide 1.0.10

Can any body give me solution. Thanks.

Last edited by rohit13 on Thu Apr 12, 2012 7:01 pm; edited 1 time in total (Reason for editing : unnecessary spacing was there)


Posts : 6
Join date : 2010-08-31

Back to top Go down

View previous topic View next topic Back to top

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