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
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Issue with "waitforpopup" in Selenium Core Empty Issue with "waitforpopup" in Selenium Core

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
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Issue with "waitforpopup" in Selenium Core Empty Re: Issue with "waitforpopup" in Selenium Core

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
avatar
HadesPluto
Active particpant
Active particpant
Posts : 11
Join date : 2009-09-23

Issue with "waitforpopup" in Selenium Core Empty I tried but..

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

Issue with "waitforpopup" in Selenium Core Empty Re: Issue with "waitforpopup" in Selenium Core

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