but it works fine in Firefox tho, how does it not work in IE7 with JUnit? Can you please suggest anything? Thank you:)
Based on the error, I think - there is a problem with xpath. Could you double check the xPath?
thanks.
Hades_Pluto wrote:
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:
<tr>
<td>click</td>
<td>xpath=//td[@id='addWidgetBtncenter']</td>
<td></td>
</tr>
<tr>
<td>waitForPopUp</td>
<td></td>
<td>30000</td>
</tr>
<tr>
<td>selectFrame</td>
<td>relative=up</td>
<td></td>
</tr>
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