pythonxpath方法
时间: 2023-10-12 21:04:55 浏览: 169
Python中的xpath方法可以用于在网页上定位元素。其中有几种常用的定位方式可以使用。一种是使用class属性来定位元素,可以使用find_element_by_xpath('//input[@class="s_ipt"]')这样的语法来选择class属性为"s_ipt"的input元素。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python-selenium -- xpath定位方法详解](https://blog.csdn.net/a7916314/article/details/102307005)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [python中的Xpath方法总结](https://blog.csdn.net/weixin_38819889/article/details/103233148)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文