Nun*_*dré 6 python selenium remotewebdriver
是否可以在服务器中使用特定的远程配置文件(不是临时的)打开Selenium Remote Webdriver?
我只能browser_profile从客户端传递一个。如果我实例化没有browser_profileSelenium 的类,则会在服务器中创建一个新的临时配置文件。
from selenium import webdriver
class Remote(webdriver.Remote):
def __init__(self, **kwargs):
capabilities = {_**whatever_}
super().__init__(
command_executor='http://HOST:PORT/wd/hub',
desired_capabilities=capabilities.copy(),
browser_profile=webdriver.FirefoxProfile(_what?_)
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
815 次 |
| 最近记录: |