Share
Go down
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Issue with "waitforpopup" in Selenium Core

on Wed Sep 23, 2009 3:34 am
Hi,

I am currently doing a web-testing using Selenium core, right now I am focuing on the automation testing in IE but I have troubles that I need help with.

When I am trying to tell Selenium to "waitforpopup" the following error message appears.

____________________________________________________________
! An error has occurred in the script on this page.


Line: 1100
Char: 9
Error: 'pathname' is null or not an object
Code: 0
URL: http://



Do you want to continue running scripts on this page?

|Yes| |No|

____________________________________________________________

Part of the HTML code is posted as following:


click
xpath=//td[@id='addWidgetBtncenter']



waitForPopUp

30000


selectFrame
relative=up





Where the first step is to click on a "addwidget button" (for the webpage that i am testing), it will launch a popup-window

So, I have used "waitforpopup" command then "selectFrame" or "selectpopup", but none of them worked in IE.


I always run into an issue when I need to wait for a new window that pops up, can anyone please help me with this issue??

Greatly appreciated...


Best,

Hades Pluto
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: Issue with "waitforpopup" in Selenium Core

on Wed Sep 23, 2009 11:05 am
Hi.

Try to use the following command and let see will it work or not:

1. clickAndWait | addwidget button
2. selectWindow | Title or id of popup appearing
3. Perform some operation on popup.
4. after doing all operation, SelectWindow| null or title of main window


Best of luck

Bye
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

I tried but..

on Thu Sep 24, 2009 10:20 am
Thank you for your reply, however there is still an issue with the popup window in IE automation. It works fine in firefox but it doesnt work in IE Sad

I have tried "click", "clickandwait", "selectwindow", "selectpopup", and "selectframe", none of these worked....

Btw, the popup window does not have an id or title..

Best,

Mark

Adviser wrote:Hi.

Try to use the following command and let see will it work or not:

1. clickAndWait | addwidget button
2. selectWindow | Title or id of popup appearing
3. Perform some operation on popup.
4. after doing all operation, SelectWindow| null or title of main window


Best of luck

Bye
Sponsored content

Re: Issue with "waitforpopup" in Selenium Core

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