Пример #1
0
 def goLogin(self):
     loginPage = LoginPage(self.driver, self.url, u"login")
     loginPage.open()
     loginPage.input_userName(CommonVar.USERNAME)
     loginPage.input_passWord(CommonVar.PASSWORD)
     loginPage.input_imageCode(CommonVar.IMAGECODE)
     loginPage.login()
Пример #2
0
 def test_Login(self):
     # 获取excel数据
     data = self.getData()
     loginPage = LoginPage(self.driver, self.url, u"login")
     loginPage.open()
     for i in data:
         self.doLogin(loginPage,i)
Пример #3
0
 def test_Login_1(self):
     page = LoginPage(self.driver)
     page.open('https://pc.shaxiaoseng.com:4433/User/login.html')
     print(page.get_title())
     account = '13521137793'
     passwd = '1111112'
     page.input_account(account)
     page.input_passwd(passwd)
     page.click_LoginSubmit('沙小僧-取金路上 小沙为您保驾护航')