随笔分类 - web自动化
摘要:# xpath截取元素,并保存到本地 canvasEle1=driver.find_element_by_xpath('/html/body/div[2]/div/div[1]/canvas[1]') canvasEle2=driver.find_element_by_xpath('/html/bo
阅读全文
摘要:# 获取下拉框下的所有元素集合 ul=driver.find_element_by_xpath('/html/body/div[2]/div[1]/div[1]/ul') li_list=ul.find_elements_by_xpath('li') print('下拉框元素数量:'+str(len
阅读全文
摘要:https://www.jianshu.com/p/d10bbdd11981
阅读全文
摘要:import time from selenium import webdriver driver = webdriver.Chrome() driver.get("file:///C:/Users/hunk/Desktop/bootstrap-datetimepicker/bootstrap-da
阅读全文
摘要:https://www.cnblogs.com/fireporsche/p/9517009.html #判断元素是否可以点击 #利用显示等待 from selenium import webdriver from selenium.webdriver.common.by import By from
阅读全文
摘要:http://chromedriver.storage.googleapis.com/index.html 2.firefox_geckodriver:https://github.com/mozilla/geckodriver/releases/
阅读全文
摘要:https://www.cnblogs.com/jasmine0627/p/13094288.html 鼠标滚动至标签可见 target=driver.find_element_by_xpath('/html/body/div[2]/div[1]/div[1]/ul/li[23]/span') #
阅读全文
摘要:定位找到input标签,type=file # 上传学员头像照片 driver.find_element_by_xpath('//*[@class="vue-upload-imgs"]/input').send_keys(r'E:\\img.png')
阅读全文
摘要:Python selenium —— 父子、兄弟、相邻节点定位方式详解 今天跟大家分享下selenium中根据父子、兄弟、相邻节点定位的方法,很多人在实际应用中会遇到想定位的节点无法直接定位,需要通过附近节点来相对定位的问题,但从父节点定位子节点容易,从子节点定位父节点、定位一个节点的哥哥节点就一筹
阅读全文
摘要:https://www.cnblogs.com/duoba/p/8975943.html http://t.zoukankan.com/codexlx-p-12580364.html
阅读全文

浙公网安备 33010602011771号