... | ... | @@ -10,10 +10,13 @@ https://invent.kde.org/sdk/selenium-webdriver-at-spi/-/blob/master/examples/calc |
|
|
|
|
|
## Requirements
|
|
|
|
|
|
- https://invent.kde.org/sdk/selenium-webdriver-at-spi
|
|
|
- A supported python3 version (at the time of writing >=3.7)
|
|
|
- https://gitlab.gnome.org/GNOME/at-spi2-core (build & install -- can also use distro packages)
|
|
|
- https://gitlab.gnome.org/GNOME/pyatspi2 (build & install -- can also use distro packages)
|
|
|
- https://gitlab.gnome.org/GNOME/accerciser (build & install -- can also use distro packages)
|
|
|
- https://invent.kde.org/sdk/selenium-webdriver-at-spi (build & install)
|
|
|
- Install selenium-webdriver-at-spi dependencies with `pip3 install -r requirements.txt`
|
|
|
- Make sure ~/.local/bin is in your $PATH
|
|
|
- appstream://accerciser.desktop
|
|
|
|
|
|
## Test
|
|
|
|
... | ... | @@ -90,3 +93,6 @@ Let's sketch out a simple addition test. |
|
|
Lastly we'll find the result display element, obtain its text property, and assert it being 8. We now have our first test completed. To run this test we'll simply execute it through the test runner `selenium-webdriver-at-spi-run ./calculatortest.py`
|
|
|
|
|
|
The complete test can be found at https://invent.kde.org/sdk/selenium-webdriver-at-spi/-/blob/master/examples/calculatortest.py
|
|
|
|
|
|
## Screenshots
|
|
|
|