随笔分类 - 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
阅读全文
摘要:selenium元素的定位方式主要有八种: 要保证用此定位方法定位到的元素是唯一的。 1、By_id 2、By_name 3、By_className(元素的css样式) 4、By_tagName(元素的标签名称) 5、By_linkText (超文本链接上的文字信息) 6、By_particalL
阅读全文
摘要:Selenium is a portable software-testing framework for web applications. Selenium is composed of several components with each taking on a specific role
阅读全文

浙公网安备 33010602011771号