【发布时间】:2021-09-15 07:10:21
【问题描述】:
我尝试在 https://www.phptravels.net/admin 中练习 selenium 自动化,但我无法输入用户名。
private By username = By.xpath("//input[@type='text'][@name='email']");
Actions inputAct = new Actions(mngr.getDriver());
inputAct.click().sendKeys("admin@phptravels.com").perform();
mngr.getDriver().findElement(page.getUsername()).sendKeys("admin@phptravels.com");
我在开发人员工具中搜索 xpath ahs 唯一元素。为什么无法输入用户名。谢谢。
【问题讨论】:
-
为什么没有人愿意帮助我?
-
页面说:
Selenium, Bots, or any automated softwares are not allowed to test here! -
你试过让硒无法检测吗?
标签: java cucumber extentreports