File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -259,25 +259,13 @@ The above line says that you can use this URL for connecting to the remote
259
259
WebDriver. Here are some examples::
260
260
261
261
from selenium import webdriver
262
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
263
262
264
263
driver = webdriver.Remote(
265
264
command_executor='http://127.0.0.1:4444/wd/hub',
266
- desired_capabilities=DesiredCapabilities.CHROME)
265
+ options=webdriver.ChromeOptions()
266
+ )
267
267
268
268
driver = webdriver.Remote(
269
269
command_executor='http://127.0.0.1:4444/wd/hub',
270
- desired_capabilities=DesiredCapabilities.OPERA)
271
-
272
- driver = webdriver.Remote(
273
- command_executor='http://127.0.0.1:4444/wd/hub',
274
- desired_capabilities=DesiredCapabilities.HTMLUNITWITHJS)
275
-
276
- The desired capabilities is a dictionary. So instead of using the default
277
- dictionaries, you can specify the values explicitly::
278
-
279
- driver = webdriver.Remote(
280
- command_executor='http://127.0.0.1:4444/wd/hub',
281
- desired_capabilities={'browserName': 'htmlunit',
282
- 'version': '2',
283
- 'javascriptEnabled': True})
270
+ options=webdriver.FirefoxOptions()
271
+ )
You can’t perform that action at this time.
0 commit comments