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;
}
原文地址:https://www.cnblogs.com/xiule/p/11996802.html
时间: 2024-11-10 10:53:07