随笔分类 -  selenium

摘要:``` from selenium import webdriver dr = webdriver.Chrome() dr.maxize_window() dr.set_window_size(240,300) url = 'http://www.baidu.com'dr.get(url) dr.q 阅读全文
posted @ 2018-07-23 18:44 NewMe0828 阅读(127) 评论(0) 推荐(0)
摘要:selenium元素的定位方式主要有八种: 要保证用此定位方法定位到的元素是唯一的。 1、By_id 2、By_name 3、By_className(元素的css样式) 4、By_tagName(元素的标签名称) 5、By_linkText (超文本链接上的文字信息) 6、By_particalL 阅读全文
posted @ 2018-06-27 20:35 NewMe0828 阅读(339) 评论(0) 推荐(0)
摘要:Selenium is a portable software-testing framework for web applications. Selenium is composed of several components with each taking on a specific role 阅读全文
posted @ 2018-06-27 19:29 NewMe0828 阅读(295) 评论(0) 推荐(0)