04 2019 档案

摘要:2、手动写一个xml文件 3、通过字典数据 存成xml文件 4、使用etree的方式解析xml文件 ''' 直接解析XML文件并获得根节点 tree = ET.parse(xmlFilePath) root = tree.getroot() 解析字符串 root = ET.fromstring(fp 阅读全文
posted @ 2019-04-20 16:45 小金儿 阅读(5884) 评论(0) 推荐(1) 编辑
摘要:2、一个简单的程序可调用的 logger生成方法: 阅读全文
posted @ 2019-04-19 11:11 小金儿 阅读(2249) 评论(0) 推荐(0) 编辑
摘要:#练习: //p[.=50]/preceding-sibling::p[1] #找到p元素值为50的上一个p元素 //p[.=40]/following-sibling::p[1] #找到p元素值为50的下一个兄弟p元素 //p[.=40]/parent::div #找到当前节点父元素 //p[.= 阅读全文
posted @ 2019-04-11 14:47 小金儿 阅读(209) 评论(0) 推荐(0) 编辑
摘要:码值 含义 备注 0x08 Backspace键 0x09 Tab键 0x0C Clear键 Num Lock关闭时的数字键盘5 0x0D Enter键 0x10 Shift键 0x11 Ctrl键 0x12 Alt键 0x13 Pause键 0x14 Caps Lock键 0x1B Esc键 0x 阅读全文
posted @ 2019-04-09 16:50 小金儿 阅读(996) 评论(0) 推荐(0) 编辑
摘要:#windows下执行 import win32api,win32con,win32clipboard as w #获取剪切板内容 def get_text(): w.OpenClipboard() d=w.GetClipboardData(win32con.CF_TEXT) w.CloseClipboard() return d #复制内容到剪切板 def... 阅读全文
posted @ 2019-04-09 16:48 小金儿 阅读(4112) 评论(0) 推荐(1) 编辑
摘要:#下拉框、单选框、文本下拉框的选择操作 阅读全文
posted @ 2019-04-06 11:14 小金儿 阅读(1306) 评论(0) 推荐(0) 编辑
摘要:#coding=gbk ''' selenium多个窗口间切换 ''' from selenium import webdriver as wd from selenium.webdriver import ActionChains as AC from selenium.webdriver.common.keys import Keys import time import selenium... 阅读全文
posted @ 2019-04-03 14:42 小金儿 阅读(205) 评论(0) 推荐(0) 编辑
摘要:#coding=utf-8 ''' selenium ''' from selenium import webdriver as wd import time bc=wd.Chrome(executable_path='f:\\chromedriver') #bc=wd.Ie(executable_path='f:\\IEDriverServer') bc.get('https://www.so... 阅读全文
posted @ 2019-04-03 10:56 小金儿 阅读(5625) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示