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


Pop-up issue with Selenium RC in IE7 testing

View previous topic View next topic Go down

Pop-up issue with Selenium RC in IE7 testing

Post by HadesPluto on Sat Sep 26, 2009 3:18 am

Hi guys:

I have a question regarding to pop-up window handling in Selenium RC for IE 7 automation testing.

I am running a test case with JUnit in IE
where there will be a pop-up window. However, the pop-up window does not
have any windowsID assigned; there is neither title nor name for it.

I have tried several methods but
I am still getting the same error message:” Error: 'pathname' is null or not
an object
” or “Permission Denied” when it comes to pop-up window in RC.

The partial code is shown below:"xpath=//td[@id='addWidgetBtncenter']");






for (int
second = 0;; second++) {

(second >= 60) fail(

try { if (selenium.isElementPresent("xpath=//input[@id='widgetName']")) break; } catch
(Exception e) {}




I have used these commands with target of the button
that triggers the pop-up window. (In this case, addWidgetBtncenter is the
button to click on for add widget)

I have placed these function commands after the action of "click the add
widget button" but before "waitforPopUp", please tell me if I am
use these commands correctly in terms of their syntax or place order. (I
have tried to place it after waitforpopup but before "selectopup", it
still doesn't give me any information in the log)

Also, I have used "windowFocus" command
then "selectFrame" or "selectpopup", but none of them
worked in IE

I am still new to Selenium/JUnit, can anyone please
help me with the correct syntax for these functions: “"storeAllWindowIds", ”storeAllWindowNames"
and "storeAllWindowTitles".” As well as the “System.Threading.Thread.Sleep(3000);”

I have been stuck in this for a while and I really
need help with it…

Any commands and suggestions are greatly appreciated!!!



Active particpant
Active particpant

Posts : 11
Join date : 2009-09-23

Back to top Go down

Re: Pop-up issue with Selenium RC in IE7 testing

Post by Adviser on Sun Sep 27, 2009 10:32 pm


check out solution to your problem here

best of luck


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

Back to top Go down

thank you

Post by HadesPluto on Mon Sep 28, 2009 11:38 pm

Thank you adviser, I will take a look at it
Adviser wrote:hi,

check out solution to your problem here

best of luck


Active particpant
Active particpant

Posts : 11
Join date : 2009-09-23

Back to top Go down

I met similar problem...need help..

Post by rubyjsw on Thu Jun 02, 2011 3:44 pm

Have u resolve the problem?

I met similar issue as u.
I am using Selenium RC 1.0.3 + Eclipse 3.6.2. Using Selenium IDE, test suite runs rightly, then I get the java code from ide, copied to Eclipse.

I have a page with link "Monitor Groups" on it, clicking on the link will open a popup window.

The popup window is drawed by javascript:

..a onmouseout="return nd();" onmouseover="return overlib('Create or modify groups of related monitors', WIDTH, 300, FGCOLOR, '#d9e1ee');" href="javascript:nd();popupConfigDialog('', POPUP_DIMENSION_WIDTH_WEB_APPLICATIONS, POPUP_DIMENSION_HEIGHT_WEB_APPLICATIONS);".>Monitor Groups<../a>

helpID = 'config_instructions';
4function popupConfigDialog(link, width, height) {
5 if (link.indexOf("/support") != -1) {
6 popupFull(link, "support", width, height, true, false, true, false);
7 } else {
8 popupDialog(link, "TopLevelConfiguration", window, width, height, true, true);
9 }

When run to the Monitor Group part, I did not see the window open in IE7..
selenium.clickAt("link=Configure", "");
selenium.clickAt("link=Monitor Groups","");

This confused me a lot, how to make the popup window visable?
Could you provide me some help...??

Thanks very much,


Posts : 1
Join date : 2011-06-02

Back to top Go down

Re: Pop-up issue with Selenium RC in IE7 testing

Post by Sponsored content

Sponsored content

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