... | ... | @@ -62,7 +62,6 @@ Let's write our first test. A simple addition should do. To write selenium tests |
|
|
|
|
|
- name: `self.driver.find_element(by=AppiumBy.NAME, value="AC")`
|
|
|
- description: `self.driver.find_element(by='description', value="Result Display")`
|
|
|
- id (requires latest Qt Patch Set): `self.driver.find_element(by=AppiumBy.ID, value="QApplication.MainWindow#1.KCalculator.calc_display")`
|
|
|
- class name: `self.driver.find_element(by=AppiumBy.CLASS_NAME, value="[push button | AC]")`
|
|
|
- accessibility id: `self.driver.find_element(by=AppiumBy.ACCESSIBILITY_ID, value="QGuiApplication.QQuickWindow_QML_28.developerPage")` the ID is constructed from objectNames and the object tree. The id is matched from the end (e.g. in the example value="developerPage" would also match)
|
|
|
|
... | ... | |