随笔分类 - pythonselenium自动化随记
摘要:文件上传 直接通过send_key上传 通过点击win窗口上传 直接通过send_key上传 这种方法与向input标签中输入文本一样 import time from selenium import webdriver from selenium.webdriver import ActionCh
阅读全文
摘要:时间戳 # 获取时间戳 time.time() # 时间元组转为时间戳 time.mktime(time.localtime()) 时间元组 # 获取时间元组 time.localtime() # time.struct_time( # 年月日 # tm_year=2022, tm_mon=8, t
阅读全文
摘要:首先要确认下拉选择框,是通过html中的select-option标签组合而成的 **Select类只能操作select-option组成的下拉选择框**,例如 <select id="s1Id"> <option></option> <option value="o1" id="id1">o1</
阅读全文
摘要:webdriver浏览器驱动对象 常用的属性和方法 | 属性/方法 | 描述 | | | | | driver.titile | 获取当前页面的标题 | | driver.name |获取浏览器的名称 | | driver.current_url | 获取当前的url | | driver.page
阅读全文