Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of calling IE browser by webdriver

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. The frame environment is omitted here. Not within the scope of this article.

2. In the slenium framework, if you want to support IE, you need to download IEDriverServer (http://code.google.com/p/selenium/downloads/detail?name=IEDriverServer_Win32_2.28.0.zip). After decompressing, put the exe program in the root directory where python is installed.

3. If WebDriverException: Message: u'Unexpected error launching Internet Explorer appears during the operation. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.' This mistake.

Solution: change IE's internet option-> Security, uncheck or check all enabled protection modes in Internet/ local Internet/ trusted sites / restricted sites. The following is an example of IE, open Baidu, automatically search selenium.

4. After setting up here, I also encounter another problem in the process of execution:

"IE has restricted this page from running scripts or Active controls, click here to allow", how to keep it from prompting?

Each time this prevents the page script from running, so sometimes the element cannot be loaded, causing the use case script to fail.

Solution: open an IE browser and press the following settings:

Tool-- Internet option-- Advanced-- in "allow active content to run on your computer" generally, once set up, you can solve the problem.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report