- 博客(2)
- 收藏
- 关注
原创 2019-12-26
Selenium有几种元素常用定位方式,分别是?你最偏爱哪一种,为什么?8种:id、name、class name、tag name、link text、partial link text、xpath、css selector 偏爱哪一种?答:我最常用的是xpath(或CssSelector)因为很多情况下,html标签的属性不够规范,无法通过单一的属性定位,这个时候就只能使用xpath可以去重...
2019-12-26 23:59:48
65
原创 2019-12-26
selenium框架driver.find_element(插入)_by_class_name(‘s_ipt’).send(发送)_keys(‘美女’)driver.find_element_by_id(‘su’).click(点击)()导入selenium框架:from selenium import webdriver导入确认键:from selenium.webdriver.comm...
2019-12-26 23:46:54
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人