... | ... | @@ -82,4 +82,6 @@ Let's sketch out a simple addition test. |
|
|
self.assertEqual(displaytext, "8")
|
|
|
```
|
|
|
|
|
|
Lastly we'll find the result display element, obtain its text property, and assert it being 8. We now have our first test completed. The complete test can be found at https://invent.kde.org/sdk/selenium-webdriver-at-spi/-/blob/master/examples/calculatortest.py |
|
|
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 |