Java Selenium WebDriver Can't find form field

送分小仙女□ 提交于 2019-12-06 08:21:52

in HTML u shared there is no name tag. so try by.linktext("Manager")

Nitin Subramanya

Please check the time specified in the wait is sufficient for the element to load completely.
OR
Use different locators like cssSelector if name, id(if present) is not working.

CssSelector example
driver.findElement(By.cssSelector(input[name='name']));

For accessing the form field, use

driver.findElement(By.xpath("//input[@name='name']"));

If you are still facing the issue of accessing the element after implicit/explicit wait, then try putting a screenshot before you access the element and see if the element is present on the page or not.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!