- HadesPlutoActive particpant
- Posts : 11
Join date : 2009-09-23
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
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:
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
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
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
- HadesPlutoActive particpant
- Posts : 11
Join date : 2009-09-23
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
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
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
- selenium.captureEntirePageScreenshot("\\test.png","") throws failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
- What is the use of Selenium Core and Selenium Test Manager ? (N-Unit Procedures in VS 2010)
- Selenium Script which contain waitForPopUp command working in firefox not in Internet Explorer.
- Selenium RC with NUnit throwing error - File does not exist. File 'c:\Projects\WebDriver\trunk\src\Selenium.Core\HttpCommandProcessor.cs'
- Selenium Core reference
Permissions in this forum:
You cannot reply to topics in this forum
|
|