Not able to Locate by Name using Filters

I have 2 elements having same name on a page. I am not able to access them using following:

name=passWord value=Enter
name=passWord value=ReEnter

This used to work in Selenium IDE.

I can still access them using xpath but just wanted to know if it can be done without xpath.

AK said:

I have 2 elements having same name on a page. I am not able to access them using following:

name=passWord value=Enter
name=passWord value=ReEnter

This used to work in Selenium IDE.

I can still access them using xpath but just wanted to know if it can be done without xpath.

AK,

I’d recommend using XPath to ensure your test case can identify the element for every test run. It increases the stability of your test.

Thank you for choosing Katalon products,
Liam