Support
Twitter Facebook Google Plus LinkedIn RSS Feed

3D Model Turbosquid

Fix error can't Get Page Source use ID driver with selenium

Selenium WebDriver – Fix for 3 common IE errors


Anyone that has worked with Selenium 2.0 WebDriver and IE will tell you how challenging it can be. But there are three common issues that most people new to using Selenium IE face when getting started.
1. Protected Mode settings are not the same for all zones
The fix for this error should be self-explanatory but if you’re just learning Selenium your brain might be too overwhelmed at first to be able to know what to do.
The issue is caused when your IE browser’s Enabled Protected Mode option setting is set different for each of your Internet, Local internet, trusted sites and restricted sites zones. To fix in IE:
  • Click on Tools>Internet Options
  • Under Internet Options click on the Security tab
  • In the Select a zone to view area click on the Internet zone
  • In the Security level for this zone click on or off the Enable Protected Modecheckbox. Whichever one you choose, needs to be set for all the other zones. For this example check the box
  • In the Select a zone to view area click on the Local intranet zone
  • In the Security level for this zone click on the Enable Protected Modecheckbox.
  • In the Select a zone to view area click on the Local intranet zone
  • In the Security level for this zone click on the Enable Protected Modecheckbox.
  • In the Select a zone to view area click on the Trusted sites zone
  • In the Security level for this zone click on the Enable Protected Modecheckbox.
  • In the Select a zone to view area click on the Restricted sites zone
  • In the Security level for this zone click on the Enable Protected Modecheckbox.
Re-run your test and you should no longer get the protected mode error.


2. The path to the driver must be set by the webdriver.ie.driver
This error typically is caused by either not having the required IEDriverServer.exe on your local machine or not having it setup in your PATH environment variable.
  • First thing to check is make sure that you have downloaded the SeleniumInternet Explorer Driver Server the SeleniumHQ download area.

If the 32-bit version of IEDriverServer.exe is launched, the 32-bit version of IE will be launched. Similarly, if the 64-bit version of IEDriverServer.exe is launched, the 64-bit version of IE will be launched.

Ex for java code:

getSystemOS() : Check system 32bit or 64 bit
PATH_FILE_BROWSER_IE_64 : Path to file IEDriverServer.exe 64bit
PATH_FILE_BROWSER_IE_32 : Path to file IEDriverServer.exe 32bit


if(getSystemOS().equals("64")){
System.setProperty("webdriver.ie.driver", PATH_FILE_BROWSER_IE_64);
}else{
System.setProperty("webdriver.ie.driver", PATH_FILE_BROWSER_IE_32);
}

3. Application not starting – Unexpected error Browser zoom level
If your application is not starting or you are just getting one or multiple InternetExplorerDriver Listening on port window mesages
than your IE browser’s zoom level might be set to something other than 100%
To fix make sure that your Internet Explorer’s Zoom property is set to 100%

Refe
Share on Google Plus

    Blogger Comment
    Facebook Comment

1 comments:

  1. There are varied options to choose from|to select from}, including 5-reel video and 3-reel classic, 3D animated slots, licensed slot machines, and progressive jackpot video games. The greatest 다파벳 playing websites will after all have video games software program from high developers, such as Playtech, BetSoft and Microgaming. You can be sure to|make sure to|remember to} discover slots with great graphics and plenty of dynamic features that may run smoothly, whether or not it’s a desktop, iPhone or mobile gadget that you’re using. When you play on-line slots for actual money, you will want to be reassured that your money is in good arms. Yes, have the ability to|you presumably can} win actual money by enjoying in} on-line slots, and it’s straightforward.

    ReplyDelete