Example #1
0
 def test_login(self, action: ElementActions):
     L.d('test_login')
     account = Steps.get_account()
     action.text(LoginPage.账号, account[0])
     action.text(LoginPage.密码, account[1])
     action.sleep(1)
     action.click(LoginPage.登录)
     action.click(HomePage.发布练习)
Example #2
0
 def get_account():
     account = Environment().get_inited_config().account_success
     pwd = Environment().get_inited_config().password_success
     L.d('账号:%s 密码 %s' % (account, pwd))
     return [account, pwd]