Python+selenium自动化之22----js定位一般用法介绍

Js定位 本篇文章主要介绍js定位的一般使用方法,Selenium提供8种元素定位的方法:id,name,class name,link text,xpath,css selector,tag name ,partial link tex。其实还有js定位方法。Js语句通常使用driver.execute_script()进行调用。 根据id定位 使用getElementById(),.value
相关文章
相关标签/搜索