一、查看python版本号
在CMD窗口中输入:
方法1:
python -V
方法2:
python --version
二、查看selenium版本号
方法1:
在CMD窗口中输入python:
>>> import selenium
>>> help(selenium)
方法2:在CMD窗口中直接输入:
pip show selenium
三、xpath高级用法
#find_element_by_xpath高级用法
语句:driver.find_element_by_xpath("//span[text()='获取短信验证码']")
driver.find_element_by_xpath("//*[contains(text(),'成功')]")
driver.find_element_by_xpath('//input[@placeholder="用户名"]')
driver.find_element_by_xpath('//input[@class="el-input__inner" and @maxlength="18"]')