title: How to getText on one page and then use it for assertEquals on another one?
body: <p>I have a table with some data like:</p>
  
  <p>|<strong>_<em>name</em>_</strong>|<em><strong></em>___</strong><em>email</em><strong><em>_</em>__<em>_</em>_</strong>|</p>
  
  <p>|website|website@test.com|</p>
  
  <p>After clicking on the name Website, a settings page of the Website is displayed. On the top, there is a header with the "Website" name.</p>
  
  <p>I need a solution for JUnit to verify that after click on the "Website" name in the table user is redirected to the "Website" settings page.</p>
  
  <p>I tried the way below but didn't help:</p>
  
  <pre><code>String firstNameInTheTable = driver.findElement(By.xpath(TestPage.FIRST_NAME_IN_THE_TABLE)).getText();
  driver.findElement(By.xpath(TestPage.FIRST_NAME_IN_THE_TABLE)).click();
  assertEquals(firstNameInTheTable, WebsitePage.WEBSITE_TITLE_TEXT);
  </code></pre>
  
  <p>Actually it would be better to verify that text from the first column ("name" in our case) is the same as on the settings page. So it may happen that we do not have a Website text but another Name. Still the test should pass.</p>