Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium RC and IE Script Error - Remote procedure call failed

My Test setup consists of several Java test cases running in IE6 using Selenium RC and TestNG.

During my test runs, the following IE Script error popup comes randomly. Upon trying to dismiss this popup by clicking Yes, the test run hangs and I have to kill the entire run.

I have tried disabling popup blocker and the MDM service but without luck.

Any pointers to what causes these errors and how to go about avoiding them??

error screenshot

like image 829
Nirmal Patel Avatar asked Jan 17 '10 17:01

Nirmal Patel


2 Answers

I have just had the same problem. And this post helped: http://manfredlange.blogspot.com/2009/11/ie8-and-selenium-rc-tests-wont-execute.html

So run selenium with admin rights and then you will not get this error. If you use visual studio (maybe also the same with eclipse or other java IDE) run it as administrator and run the tests like that.

like image 105
apolka Avatar answered Oct 22 '22 01:10

apolka


I'm running my selenium tests from the command line, and I found that running the command shell "as administrator" solved the problem.

like image 33
Eric Wilson Avatar answered Oct 21 '22 23:10

Eric Wilson