Xpath syntax help

I apologize up front if this is not the correct place to ask such a basic question. I want to write a relative xpath for the second i class detected on the page. I’m not sure how to go about this without adding parent/grandparent path info. I’ve tried combining class and position(). Unfortunately, my syntax is apparently wrong.

Screen Shot 2017-12-20 at 1.21.33 PM.png

How about trying this tip?


Thanks Vinh for your link. From a co-worker who had some free time, I got a proper xpath as: //i[@class=“CarouselInner__PageControlIcon icon-angle-right” and @xpath=‘2’] through ChroPath.

I didn’t realize you could write “and” as a concatenator.

I haven’t tried this in Katalon yet, but I will let you know if it works.

Thanks for all your help!