views:

577

answers:

0

hello,

My application supports only IE browser, but I am not able to handle pop up with selenium RC. I am using Junit framework and Eclipse. The scenario is like, On billing page I have to check one checkbox, which generates a popup wondow. And I have to click OK to that pop up message, Save the record and move to next page. Have a look on script below,

selenium.click("ctl00_POMSContentPlaceHolder_chkReadytoBill");  
 assertEquals("You marked this order's accounting information to be billed", selenium.getAlert());
 selenium.click("Save");

 new Wait()
 {
    public boolean until(){
   return selenium.isElementPresent("some_message");
  }
 };
selenium.open("URL of page");

...

Whenever I am executing this script, I am not able to navigate to other page after getting an alert message. At ".open" line it is giving me below error:

com.thoughtworks.selenium.SeleniumException: ERROR: Selenium failure. Please report to the Selenium Users forum at http://forums.openqa.org, with error details from the log window. The error message is: Permission denied at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73) at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:234) at insertcircuitorder.CKT3.testCKT3(CKT3.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:71) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

I think so it is not focusing back on parent form after getting alert...is this the reason???

Please help me out. I can't move further until i solve this :(