tags:

views:

449

answers:

2

I'm writing some automated tests in C# and a JavaScript error is thrown when I try to click on a button that will submit changes made to a web form. The error I am recieving is:

An error has occured in the script on this page 
Line:  2004 
Char:  9 
Error:  Permission denied 
Code:  0 
URL:  file:///C:/DOCUME~1/nkinney/LOCALS~1/Temp/customProfileDir6c0c7d7226cc463fb­b1a7f6253c4df62/core/scripts/selenium-browserbot.js 

Once the test is finished, the error will still be displayed if I manually click on the button while selenium is running.

The line in selenium to select this button is:

selenium.Click("//input[contains(@id, 'SubmitBtn')]"); 

I've also tried submit.

A pop-up should be displayed asking the user to confirm they want to make the changes. This error is thrown before the pop-up is displayed and after Selenium 'clicks' on the button.

Any advise would be greatly appreciated.

A: 

After further investigation, I found that Selenium is unable to work with custom modal dialog boxes. That said, I don't think I will be able to use Selenium to automate UI testing in our current release. Thanks to anyone who looked at this post.

Nick
A: 

I have similar selenium-browserbot.js error. The page try to pop up another page. Instead of Permission denied, the error is:

Error: 'null' is null or not an object

The error happens on IE8 on Windows 7 but not Windows XP. I'm using selenium-grid to distribute tests. Any idea why this happen and how to fix it? I have no luck googling.

logoin