예제 #1
0
class ScreenOne:
    _button = fetch(iOS("id", "buttonSignIn"), Android("id", "button"))
    _text_field = fetch(iOS("id", "inputUserName"), Android("id", "username"))
    _text_password = fetch(iOS("id", "InputPassword"), Android("id", "pass"))

    def login(self, username, password):
        self._text_field.send_keys(username)
        self._text_password.send_keys(password)
        self._button.click()
예제 #2
0
class LoginScreen:
    _button_sign_in = fetch(iOS("id", "buttonSignIn"), Android("id", "button"))
    _input_username = fetch(iOS("id", "inputUserName"),
                            Android("id", "username"))
    _input_password = fetch(iOS("id", "InputPassword"), Android("id", "pass"))

    def fill_email(self, email):
        self._input_username.send_keys(email)

    def fill_password(self, password):
        self._input_password.send_keys(password)

    def click_button_sign_in(self):
        self._button_sign_in.click()
예제 #3
0
 class Screen:
     element = fetcher.fetch(iOS("id", "test"), Android("id", "test"))
예제 #4
0
class ScreenTwo:
    _label = fetch(iOS("id", "labelHello"), Android("id", "welcome_message"))

    def label_welcome_message(self):
        return self._label.text