title: Selenium wb driver: Verify text passes when the text is cut off?
body: <p>Snippet of my verifyText function:</p>
  
  <pre><code>String actual = driver.findElement(By.xpath(OR.getProperty(object))).getText();
  String expected=data;
  </code></pre>
  
  <p>Snippet of my isDisplayed function:</p>
  
  <pre><code>if (driver.findElement(By.xpath(OR.getProperty(object))).isDisplayed()){
  </code></pre>
  
  <p>The data = "Please enter a valid email address"</p>
  
  <p>However, the only text visible is "Please".  But when I use the Selenium IDE, it too see's "Please enter a valid email address".  It is just being cut off.  But the automation passes this step, but I would like it to fail.  I tried the two functions above, same results.</p>
  
  <p>Is there a way I can get this step to fail when expecting "Please enter a valid email address" but only "Please" is visible to a user?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;li class="mktFormReq mktField" title="Please enter a valid email address"&gt;
  &lt;label&gt;Email Address:&lt;/label&gt;
  &lt;span class="mktInput mktError"&gt;
  &lt;input id="Email" class="mktFormText mktFormEmail mktFReq" type="text" tabindex="3"     maxlength="255" value="" name="Email"&gt;
  &lt;span class="mktFormMsg" style="left: 214px;"&gt;Please enter a valid email address&lt;/span&gt;
  &lt;/span&gt;    
  &lt;/li&gt;
  </code></pre>
  
  <p>Visually:</p>
  
  <p>Only Please is visible, the rest if cut off.</p>