org.openqa.selenium.ElementNotVisibleException but found 2 elements. Can I choose which element


working on testing a new web site… and having problem input into a field.

Issue I am having is not able to setMaskText or use CustomKey robot.keyPress to input value for the 3rd li item.

Error from Katalon is org.openqa.selenium.ElementNotVisibleException: element not visible ,however Katalon does find it: Found 2 web elements with id: ‘Object Repository/obj3’ located by 'By.xpath:

Question: when Katalon found more then 1 elements, is there a way to choose which one? by some index or something?

I am already using the unique data-bind value to locate field 3. But still found 2 due to the nature of the web page.

The web page form have a list to switch between different type and 3 different fields.

--- page html structure is something like this —

login page have a form

<div class="yyy1" data-bind="with: typeListVM, css: { 'r-is-hidden': false }"

“Login type 1”