selenium导入By包使用
背景:在使用最新版本Python时候,使用xpath定位元素,编译器提示:DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead driver.find_element_by_xpath('//*[@id="app"]/section/main/div/button[1]').click()find_element_by_xpath 方
原创
2022-06-09 10:12:25 ·
6536 阅读 ·
1 评论