coding = utf-8
Date: 2021/5/12 16:33
import time
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from AutoWebUi.PageLocators.login_pagelocators import LoginPageLocators as LOC
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.common.exceptions import StaleElementReferenceException
from AutoWebUi.Common.basepage import BasePage
class LoginPage(BasePage):
#元素定位--通过find_element_by_xpath的底层方法,find_element传入元组(方法,值),使用时find_element(*self.xx),*解包
#以下元素存入PageLocators.login_pagelocators中
# name_text = (By.XPATH,'//*[@id="u"]')
# pwd_text = (By.XPATH,'//*[@id="p"]')
# login_button = (By.XPATH,'//*[@id="login_button"]')
# remberuser_check = (By.XPATH,'//*[@id="p_low_login_enable"]')
# login_tips=(By.X

最低0.47元/天 解锁文章
832

被折叠的 条评论
为什么被折叠?



