A custom locator converter in Appium. Appium supports locators which are not defined in W3C WebDriver, so Appium Python client wants to keep the given locators to the Appium server as-is.
| 18 | |
| 19 | |
| 20 | class AppiumLocatorConverter(LocatorConverter): |
| 21 | """A custom locator converter in Appium. |
| 22 | |
| 23 | Appium supports locators which are not defined in W3C WebDriver, |
| 24 | so Appium Python client wants to keep the given locators |
| 25 | to the Appium server as-is. |
| 26 | """ |
| 27 | |
| 28 | def convert(self, by: str, value: str) -> Tuple[str, str]: |
| 29 | return (by, value) |