摘要: from selenium.webdriver.common.keys import Keys driver.find_element_by_id(''select).send_keys("xx",Keys.ARROW_DOWN) 输入的同时按下箭头键 阅读全文
posted @ 2020-06-28 13:43 hyeonsori 阅读(118) 评论(0) 推荐(0)
摘要: 1.使用绝对路径定位元素 html>body>div>input[value='xx'] 步间通过">"分割 2.使用相对路径定位元素 input[value='xx'] 3.使用class名称定位元素 input.xx "."分割元素名与class属性名 4.使用id属性值定位元素 input#x 阅读全文
posted @ 2020-06-28 13:28 hyeonsori 阅读(109) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> </bookstore> <bookstore> 阅读全文
posted @ 2020-06-28 12:55 hyeonsori 阅读(125) 评论(0) 推荐(0)
摘要: import unittest import random class MyClass(object): @classmethod def sum(cls,a,b): return a+b @classmethod def div(cls,a,b): return a/b @classmethod 阅读全文
posted @ 2020-06-28 11:50 hyeonsori 阅读(118) 评论(0) 推荐(0)