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
fazlu
Posts : 6
Join date : 2010-08-31

How to recognize the pop up window during running script Empty How to recognize the pop up window during running script

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.


http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
http://selenium-ide.openqa.org/profiles/test-case">

New Test
New Test
open /ABC/login.jsf
type username joe1@hotmail.com
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)
Back to top
Permissions in this forum:
You cannot reply to topics in this forum