Using the Escape character is not for the purpose. I tried the concatenation function and worked like a charm. See below xpath.
tag: li Workflow / li Initiator Manager Manager
Combine the function and split the line as -
concat ("Workflow initiator manager", "'", "Manager")
A single quote is stored in double quotation marks , while other characters are stored in single quotation marks.
So XPath looks like
// li [. = concat ("Workflow initiator manager", "'", "Manager")]
Hope this helps. :)
source share