有人可以向我解释为什么找不到 Selenium webdrivername=userid
吗?
<input class="required" type="text" size="15" maxlength="64" **name="userid"**
value="" style="background-color: rgb(255, 255, 255);">
我的代码:
driver.findElement(By.name("userid")).sendKeys(prop.getProperty("userName"));
错误:
Unable to locate element: {"method":"name","selector":"userid"}