title: Find element byXpath failing when reading from a spreadsheet cell
body: <p>I've structured my automated tests in such a way that the Xpath element is stored in a spreadsheet.</p>
  
  <p>I'm using Apache POI to read the cell and I then use the value of the cell in the following line of code (buttonID being the value that gets read from the spreadsheet):</p>
  
  <pre><code>driver.findElement(By.xpath(buttonID));
  </code></pre>
  
  <p>It tells me that it can't find the button, but when I debug it, the value for buttonID is exactly the same as below (which works):</p>
  
  <pre><code>driver.findElement(By.xpath("//*[@id=\"newsletter-sign-up\"]/a"));
  
  debug: buttonID = "//*[@id=\"newsletter-sign-up\"]/a"
  </code></pre>
  
  <p>The code I'm using to retrieve the Xpath value is:</p>
  
  <pre><code>String myValue = this.sheet.getRow(0).getCell(0).toString();
  </code></pre>
  
  <p>and the value of the cell is:</p>
  
  <p>//*[@id=\"newsletter-sign-up\"]/a</p>
  
  <p>I've tried enclosing it in double quotes in excel, but that also makes no difference. Is there something else that I'm missing?</p>