-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocators.py
More file actions
18 lines (14 loc) · 710 Bytes
/
locators.py
File metadata and controls
18 lines (14 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from appium.webdriver.common.appiumby import AppiumBy
class Locators:
class main_menu:
TEXT_LINK = (AppiumBy.ACCESSIBILITY_ID, "Text")
CONTENT_LINK = (AppiumBy.ACCESSIBILITY_ID, "Content")
VIEWS_LINK = (AppiumBy.ACCESSIBILITY_ID, "Views")
MENU_ELEMENTS = (AppiumBy.XPATH, "//android.widget.TextView")
class views_menu:
TEXT_FIELDS = (AppiumBy.ACCESSIBILITY_ID, "TextFields")
ANIMATION_LINK = (AppiumBy.ACCESSIBILITY_ID, "Animation")
GALLERY_LINK = (AppiumBy.ACCESSIBILITY_ID, "Gallery")
IMAGE_BUTTON = (AppiumBy.ACCESSIBILITY_ID, "ImageButton")
class views_fields:
HINT_INPUT = (AppiumBy.ACCESSIBILITY_ID, "hint")