Skip to content

Commit

Permalink
Added example of modifying web driver's path (#153)
Browse files Browse the repository at this point in the history
* Added example of modifying web driver's path
  • Loading branch information
raratiru committed Dec 22, 2020
1 parent 08aa157 commit ee5093a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rst
Expand Up @@ -133,6 +133,19 @@ Fixtures
* splinter_driver_kwargs
Webdriver keyword arguments, a dictionary which is passed to selenium
webdriver's constructor (after applying firefox preferences)

.. code-block:: python
import pytest
from pathlib import Path
@pytest.fixture
def splinter_driver_kwargs():
"""
Webdriver kwargs for Firefox.
https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.firefox.webdriver
"""
return {"service_log_path": Path("/log/directory/geckodriver.log")}
* splinter_window_size
Size of the browser window on browser initialization. Tuple in form (<width>, <height>). Default is (1366, 768)
Expand Down

0 comments on commit ee5093a

Please sign in to comment.