English 中文(简体)
所有区(SELENIUM)的保护模式环境并不相同。
原标题:Protected Mode settings are not the same for all zones (SELENIUM) (IE MODE IN EDGE)

我一直试图利用Selenium在互联网探索模式中打开Microsoftpher,并且每次都提到以下错误:

“Message: Unexpected差错发射因特网探索者”。 保护区的环境并不相同。 受保护者 对所有区而言,模式必须具有相同价值(残疾或残疾)。

我的法典如下:

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

ie_options = webdriver.IeOptions()
ie_options.attach_to_edge_chrome = True
ie_options.edge_executable_path = r"C:UsersPC1DownloadsIEDriverServer_Win32_4.14.0IEDriverServer.exe"

driver = webdriver.Ie(options=ie_options)

driver.get("http://www.bing.com")
elem = driver.find_element(By.ID,  sb_form_q )
elem.send_keys( WebDriver  + Keys.RETURN)

driver.quit()

我尝试通过人工方式改变因特网探索者所处的环境(不过,似乎我可以把“受限制的地点”改为“高(缺陷)”,我还使小组政策编辑的“保护模式”。

是否有任何人遇到过错,或能够以任何方式提供帮助?

问题回答

我建议,你可以在登记册中编辑保护模式环境。 关于登记钥匙的路径,请参看3<>/strong>)的残疾保护模式(带值1,2,3 ,4)。 你可以提到以下情况:

“entergraph

此外,请指出,你需要将简易爆炸装置的实施置于>PATH。 关于使用简易爆炸装置的必要配置,请参见

你使用的法典也有一些问题。 <代码>e_options.tap_executable_path应当指明微软边缘可执行的道路。 请修改以下法典:

ie_options.edge_executable_path = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"




相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签