I need to use apostrophe (\') in my xpath expression which i need to use in finding elements using webdriver
i need to use below Xpath expression
//
The Escape character usage does not serve the purpose. I tried the concatenation function and it worked like a charm. Please see the below xpath.
tag: li Manager of Workflow Initiator's Manager /li
Concatenate function and split the string as –
concat('Manager of Workflow Initiator',"'",'s Manager')
Single quote is kept in double quote while other characters are kept in single quotes..
So XPath looks as –
//li[.=concat('Manager of Workflow Initiator',"'",'s Manager')]