摘要:
from selenium import webdriver#引入keys模块from selenium.webdriver.common.keys import Keysdriver = webdriver.Chrome()driver.get("https://www.baidu.com")#输 阅读全文
摘要:
import unittestfrom selenium import webdriverclass BaiduTest(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() self.driver.implic 阅读全文
摘要:
from selenium import webdriver#引入ActionChains类:from selenium.webdriver.common.action_chains import ActionChainsdriver = webdriver.Chrome()driver.maxim 阅读全文
摘要:
from selenium import webdriversearch_text = ["python","中文","text"]for text in search_text: driver = webdriver.Firefox() driver.implicitly_wait(10) dri 阅读全文
摘要:
public.py from selenium import webdriverclass Login(): def user_login(self,driver,username,password): driver.find_element_by_id("switchAccountLogin"). 阅读全文