title: How can I get CSS selector for text wrapped in a paragraph under<p> tag
body: <p>I am trying to capture an URL in a mail paragraph using a Xpath selector (Xpath: html/body/p[2]/text()[3]). I could not get a proper css selector but with Xpath, I'm getting an error as given below when executing the Selenium webdriver test.</p>
  
  <pre><code>&lt;body&gt;
  &lt;p&gt;Dear EmailTest user,&lt;/p&gt;
  &lt;p&gt;
  Your profile on the Swwebsite has been successfully created.
  &lt;br/&gt;
  To begin, click on the link below. You will be prompted to create a password during the login process.
  &lt;br/&gt;
  https://test.website.com/one/portal/$swweb/?uri=emailuser-125633uu3d-452iekdkd
  &lt;br/&gt;
  After creating your password, you will be able to access your application with the below username:
  &lt;br/&gt;
  User Name emailuser_test
  &lt;br/&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>Getting the below error:</p>
  
  <blockquote>
    <p>com.ibm.automation.wtf.driver.DriverException: TypeError: Argument 1 of Window.getComputedStyle does not implement interface Element.<br>
    Build info: version: '3.5.2', revision: '10229a9', time: '2017-08-21T17:29:55.15Z'</p>
  </blockquote>
  
  <p>On some search over internet it seemed a Firefox issue with CSS. Can somebody help me here in fixing the issue or getting a proper CSS selector for capturing URL in the mail </p>
  
  <blockquote>
    <p>System info: host: 'IBM345-R902EWZ3', ip: '9.162.252.164', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'<br>
    Driver info: org.openqa.selenium.firefox.FirefoxDriver</p>
  </blockquote>