Troubleshooting Python+selenium+eclipse Problems

Source: Internet
Author: User

1, Test_login (login. Login) ... ERROR

Webdriverexception:message: ' Iedriver executable needs to being available in the path. Download from Http://code.google.com/p/selenium/downloads/list and read up at http://code.google.com /p/selenium/wiki/internetexplorerdriver '
The mistake was that I didn't Iedriver
Solution: Download Http://code.google.com/p/selenium/downloads/list,iedriver download and copy to the path of Python recorded in path
Rerun the script.
2, Webdriverexception:message:u ' unexpected error launching Internet Explorer. Browser zoom level is set to 106%. It should is set to 100% '
This is a solution from the Internet.
Solution: First, run regedit to open the registry
Second, modify the registry key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\zoom under the Zoomfactor, the value of the inside change (in binary, Online said is changed to 100000 to 101000, I did not succeed, my is 86000 I later changed 80000, he will not error.

In addition, I found that although I do not know the meaning of this registry key, but I later guessed that it is to show the proportion of the meaning, because the failure to run will leave behind such an IE frame, I changed the display to 100%, (the general panel directly there, if you do not find, can also go to the menu view-zoom-100 % is modified) and then rerun the script, OK, and the value in the registry has changed, do not know how to change the value of the registry key to how many students can try this method.
3, Webdriverexception:message:u ' unexpected error launching Internet Explorer. Protected Mode settings is not the same for all zones. Enable Protected Mode must is set to the same value (enabled or disabled) for all zones. '
The approximate result of reading English is that the browser is in protected mode, I try to follow the Internet to the Internet option of IE removed the security of Enable Protected mode check, but after saving again run or not. Then again from the online search, the solution is as follows, the information in the zones value set is not the same, and then we need
First, open the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
Second, expand the registry key, I have 5 subkeys, 0, 1, 2, 3, 4
If the 1-4 key has a property called 2500,change its value to the same non-0 value(This place I have not tried on other people's system, my own system on the default is the 1,2,3key 2500 property value is 3, and the 4th key 2500 property is 2, I will 3, 4th key value to 3,ie Webdriver successfully started) after the change, rerun the script, through. This scenario has a network address of http://qa.blog.163.com/blog/static/190147002201249111158752/
There is a picture, you can refer to

Troubleshooting Python+selenium+eclipse Problems

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.