通过css定位前端元素

前端页面代码如下:

<html>
 <body>
    <div class="formdiv">
      <form name="fnfn">
        <input name="username" type="text"></input>
        <input name="password" type="text"></input>
        <input name="continue" type="button"></input>
        <input name="cancel" type="button"></input>
        <input value="SYS123456" name="vid" type="text">
        <input value="ks10cf6d6" name="cid" type="text">
      </form>
     <div class="subdiv">
        <ul id="recordlist">
            <p>Heading</p>
            <li>Cat</li>
            <li>Dog</li>
            <li>Car</li>
            <li>Goat</li>
        </ul>
     </div>
     </div>
  </body>
</html>

元素定位示例

selenium常见元素定位方式-CSS

 

 

 selenium常见元素定位方式-CSS

selenium常见元素定位方式-CSS

 

相关文章:

  • 2021-08-28
  • 2021-04-29
  • 2022-12-23
  • 2021-09-14
  • 2021-11-14
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-09
  • 2021-10-04
  • 2021-12-04
  • 2022-01-10
  • 2021-12-31
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案