0
点赞
收藏
分享

微信扫一扫

Web 定位元素常用方法

云卷云舒xj 2022-01-31 阅读 102
功能测试

  @FindBy(how = How.ID, using = "username")
  @FindBy(how = How.TAG_NAME, using = "th")
  @FindBy(how = How.NAME, using = "dp")
  @FindBy(how = How.XPATH, using = "//*[@id=\"navbarSupportedContent\"]/ul/li")
  @FindBy(how = How.XPATH, using = "//button[text()=' Disagree ']")
  @FindBy(how = How.CSS, using = "input[placeholder='mandatory if reject']")
  @FindBy(how = How.CSS, using = "li[class='page-item ng-star-inserted disabled']")
  @FindBy(how = How.CSS, using = "div[class='user-name ng-star-inserted']")

举报

相关推荐

0 条评论