... | ... | @@ -26,9 +26,15 @@ You can also run tests manually. Like so: `selenium-webdriver-at-spi-run ./examp |
|
|
|
|
|
## Test
|
|
|
|
|
|
You can write tests in any language you want. For the purposes of this guide we are going to use python in the hopes that most readers are familiar enough with that language.
|
|
|
You can write tests in any language you want. For the purposes of this guide we are going to use python in the hopes that most readers are familiar enough with that language. The complete source code is available [here](https://invent.kde.org/sdk/selenium-webdriver-at-spi/-/blob/master/examples/calculatortest.py).
|
|
|
|
|
|
```python
|
|
|
import unittest
|
|
|
from appium import webdriver
|
|
|
from appium.webdriver.common.appiumby import AppiumBy
|
|
|
import selenium.common.exceptions
|
|
|
from selenium.webdriver.support.ui import WebDriverWait
|
|
|
|
|
|
class SimpleCalculatorTests(unittest.TestCase):
|
|
|
pass
|
|
|
|
... | ... | |