What would a Selenium xpath selector be for the following HTML:
First Second Third<
I think this is what you are looking for
ul/li[contains(text(), "Second")]
and better still
ul/li[text() = 'Second']