Selenium IDE-定位策略

对于大多数Selenium命令, 我们需要一个目标位置, 该目标位置在Web应用程序的上下文中唯一定义Web元素。

目标由一种定位策略组成, 格式如下:

LocatorType = LocatorStrategy

在Selenium IDE中, 目标在指定特定Web元素位置的六种模式下工作, 这些模式是:

  • 通过标识符定位
  • 按ID元素定位
  • 按名称查找
  • 通过XPath定位
  • 通过CSS定位
  • 通过DOM定位
Selenium IDE-定位策略

在详细介绍每种模式之前, 你应该精通HTML和CSS。你还可以参考以下链接下提供的HTML和CSS教程:

完整的HTML教程:https://www.srcmini02.com/html-tutorial

完整的CSS教程:https://www.srcmini02.com/css-tutorial

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_47221.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?