Commit bf572a89 by 杨基红

enhance agreement check

parent 49630a73
......@@ -21,7 +21,7 @@ class Login(BasePage):
self.login_info = (By.XPATH, '/html/body/div[2]/div/div/div/div/div/span[2]')
# 同意隐私政策
self.agree_box = (By.XPATH, "//span[@class='ant-checkbox']//input[@class='ant-checkbox-input']")
self.agree_box = (By.XPATH, "(//input[@type='checkbox'])[1]")
def login(self, user, password):
self.find_ele(self.reader_username).send_keys(user)
......@@ -37,7 +37,7 @@ class Login(BasePage):
time.sleep(1)
self.find_ele(self.follow_password).send_keys(password)
time.sleep(1)
self.find_ele(self.agree_box).click()
self.check(self.agree_box)
time.sleep(1)
self.find_ele(self.person_login).click()
time.sleep(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment