摘要:from selenium import webdriver chrome = webdriver.Chrome() chrome.get('https://www.bilibili.com') ul = chrome.find_element_by_xpath('//*[@id="primary_
阅读全文
05 2019 档案
摘要:1.pytest.assume(xxx) 这里的xxx实际就是一个值为True的bool表达式,但是他不能为False,所以需要注意。 2.元素路径定位时,如果是By.CLASS_NAME,后面不能有空格,否则出错。
阅读全文