禁用Internet Explorer远程WebDriver的本地事件

2024-06-01 11:10:52 发布

您现在位置:Python中文网/ 问答频道 /正文

如何禁用Python Selenium远程Webdriver和internetexplorer的本机事件?在

可能相关:我特别想用BrowserStack的InternetExplorer9,10做自动测试。在

目前我正在构建远程webdriver:

import webdriver

url = "https://%(username)s:%(automate_key)s@hub-cloud.browserstack.com/wd/hub" % {
   'username': 'foo',
   'automate_key': 'fookey'
}
capabilities = webdriver.DesiredCapabilities.INTERNETEXPLORER.copy()
capabilities['platform'] = "WINDOWS"
capabilities['version'] = "9"  # IE9
driver = webdriver.Remote(url, desired_capabilities=capabilities)

Tags: keyurl远程selenium事件usernameautomatebrowserstack