Skip to content

Pass in arbitrary kwargs to WebDriver

Compare
Choose a tag to compare
@ElSnoMan ElSnoMan released this 24 Aug 20:00
· 53 commits to main since this release
4c5fed8

v1.13.0 - 2021.08.24

Overview

You can now pass in other, arbitrary keyword arguments (aka "kwargs") to WebDriver. For example, to change the service log path, you would do this:

{
    "driver": {
        "webdriver_kwargs": {"service_log_path": "webdriver.log"}
    }
}

Added

  • Pass in arbitrary kwargs to WebDriver through pylenium.json
  • Element highlighting with the Element.highlight() method
# highlight the button element
py.get("#button").hightlight()