Playwright Configuration

Playwright is an alternative to Selenium to test web applications using toolium. This integration is currently in beta version.

To choose Playwright instead of Selenium, configure web_library property in [Driver] section in conf/properties.cfg file with playwright and configure the browser in type property as in Selenium tests.

The following example shows how to configure toolium to run tests on Chrome using Playwright:

[Driver]
web_library: playwright
type: chrome

To run Playwright tests, you must install Playwright dependencies. You can do it by running the following command:

$ pip install toolium[playwright]

Features not supported yet

The following toolium features are not supported yet when using Playwright:

  • Page Elements: not all page elements are implemented for Playwright. Currently only Text and Button page elements are implemented.

  • Element Parent: elements can not be located inside another element using Playwright.

  • Locators: only id and xpath locators are implemented for Playwright.