编程语言
首页 > 编程语言> > selenium java清空默认值方法

selenium java清空默认值方法

作者:互联网

public ReleaseRequirePage setContactNumber(String phoneNum) {

  WebElement element=tp.xpathLocator(TradingHallLoc.acontactNumber);
  element.click();
  element.sendKeys(Keys.chord(Keys.CONTROL, "a"));//全选
  element.sendKeys(Keys.BACK_SPACE);//退格键删除
  element.sendKeys(phoneNum);
  return this;
}

标签:java,Keys,phoneNum,selenium,element,退格,默认值,sendKeys
来源: https://www.cnblogs.com/xiule/p/11996802.html