You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: selenium_extensions/core.py
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,7 @@ class SeleniumDriver:
221
221
executable_path (str): path to the browser's webdriver binary. If set to ``None`` selenium will serach for browser's webdriver in ``$PATH``.
222
222
run_headless (bool): boolean flag that indicates if webdriver has to be headless (without GUI).
223
223
load_images (bool): boolean flag that indicates if webdriver has to render images.
224
+
use_proxy (str): use http proxy in <host:port> format.
224
225
225
226
Raises:
226
227
selenium_extensions.exceptions.SeleniumExtensionsException: ``browser`` is not supported by ``selenium_extensions``.
@@ -254,12 +255,13 @@ def goto_google(self):
254
255
Firefox doesn't support native headless mode. We use ``pyvirtualdisplay`` to simulate it. In order ``pyvirtualdisplay`` to work you need to install ``Xvfb`` package: ``sudo apt install xvfb``.
'''Function to initialize ``selenium.webdriver.Firefox`` with extended options
42
45
43
46
Args:
44
47
executable_path (str): path to the ``geckdriver`` binary. If set to ``None`` selenium will search for ``geckdriver`` in ``$PATH``.
45
48
run_headless (bool): boolean flag that indicates if ``geckodriver`` has to be headless (without GUI). ``geckodriver`` doesn't support native headless mode, that's why ``pyvirtualdisplay`` is used.
46
49
load_images (bool): boolean flag that indicates if Firefox has to render images.
50
+
use_proxy (str): use http proxy in <host:port> format.
0 commit comments