Can we use xpath-selector for finding web elements?


#1

I see references to using CSS selectors to find web elements like:

webctrl css-selector=‘something’

Does the same thing work with XPath??

webctrl xpath-selector=‘something’


#2

Tried it myself and it appears that we cannot:

WORKS: css-selector=‘input[name=“POLN”]’

DOESN’T WORK: xpath-selector=’//input[@name=“POLN”]’


#3

Are you able to see xpath selectors in uiexplorer?


#4

I didn’t try that. I just added it to an activity to see if it would work.

I come from a test automation background and we use both CSS and XPath all day long to locate & interact with elements. That’s why UIPath has been frustrating. It’s a paradigm shift.