title: Selenium WebDriver how to verify Text from Span Tag
body: <p>I'm trying to verify the text in the span by using WebDriver. There is the span tag:</p>
  
  <pre><code>&lt;span class="value"&gt;
      /Company Home/IRP/tranzycja
  &lt;/span&gt;
  </code></pre>
  
  <p>I tried something like this:</p>
  
  <pre><code>driver.findElement(By.xpath("//span[@id='/Company Home/IRP/tranzycja']'"));
  driver.findElement(By.cssSelector("span./Company Home/IRP/tranzycja"));
  </code></pre>
  
  <p>but none of this work.</p>
  
  <p>Any help would be really appreciated. Thanks</p>
  
  <p>More code:</p>
  
  <pre><code>&lt;span id="uniqName_64_0" class="alfresco-renderers-PropertyLink alfresco-renderers-Property pointer small" data-dojo-attach-point="renderedValueNode" widgetid="uniqName_64_0"&gt;
      &lt;span class="inner" tabindex="0" data-dojo-attach-event="ondijitclick:onLinkClick"&gt;
      &lt;span class="label"&gt;
          In folder: 
      &lt;/span&gt;
      &lt;span class="value"&gt;
          /Company Home/IRP/tranzycja
      &lt;/span&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>uniqName shouldn't be a target because are a lot of them and they are change. </p>
  
  <p>There is a full html code:
  http://www.filedropper.com/spantag</p>