0

I have a login box that looks like the picture attached ... enter image description here

I am using Java with Winium to try to login. I am using UiSpy to get the elements, but all that UI spy shows is the Login box, The title bar with a System menu bar (sys menu and X) and close button (see picture attached)

enter image description here

How can I access the fields (Login and Password)? Is there some other way to find them. I did try one other way to find them, but it did not help. In the code sample below, ele2 is the box:

WebElement ele2 = driver.findElement(By.name("Login"));
List<WebElement> eles = ele2.findElements(By.xpath("./*"));
System.out.println("There are " + eles.size());

for (WebElement ele : eles) {
    System.out.println("=== " + ele.getAttribute("id") + " ... " + ele.getAttribute("name"));
}

The results:

There are 1
=== null ... null

So the element has no id and no name and there is only 1. How can I find the input fields?

Tony
  • 1,127
  • 1
  • 18
  • 29

0 Answers0