Selenium RC basic test doesn't work with iexplore but works with FF and more

Classic google test here from selenium site, it works in FF on Vista. In IE7, no window object appears to be found. Selnm gets stronger in test (in IE) when I change the config to use "* iexploreproxy" (instead of "* iexplore"), but I cannot use that because it raises invalid security certificate warnings. I installed selenium RC 1.0.1 and verified that it works on my box, I am not using any other tools like bromine. I am running Eclipse.

The public class NewTest extends SeleneseTestCase {

  public void setUp() throws Exception {
    setUp("http://www.google.com/", "iexplore");
         // We instantiate and start the browser
  }

  public void testNew() throws Exception {

       selenium.open("/");
       selenium.type("q", "selenium rc");
       selenium.click("btnG");
       selenium.waitForPageToLoad("30000");
       if(! selenium.isTextPresent("Results * for selenium rc"))
           throw new Exception("failed");
 }

      

}

+2


source to share


2 answers


I found this error occurs when IE is running in Protected Mode. You can disable Protected Mode by going to IE Tools-> Internet Options-> Security and check the box.



+2


source


I found that internet options, connections, LAN settings have an auto-configuration script / custom profile that was getting in the way of IE in some way. He is working now! There was a path only for history. File: // C: /Users/myname/AppData/Local/Temp/customProfileDir4b9b53c99d684ec4952cf8a721790c85/proxy.pac



0


source







All Articles