How to find an element which contains using Selenium
问题 <td>By Company </td> I need to capture xpath of the above element. I tried following alternatives, but nothing seems to be working in chrome. Can you please suggest any other option. "//td[normalize-space(text())='By Company\u00a0']" "//td[normalize-space(text())='By Company\u00a0\u00a0']" "//td[text()='By Company\u00a0']" "//td[text()[normalize-space(.)='By Company\u00a0']]" "//td[text()[normalize-space()='By Company\u00a0']]" 回答1: To locate the element: <td>By Company </td> You can use