title: Selenium, use Wait Until Element Is Visible with xpath Text() instead of Element Text Should Be
body: <p>As  RF novice, i'm trying to understand a line of code which uses &quot;Wait Until Element Is Visible&quot; to verify a text (string of characters) exists on the HMI page or not instead of using &quot;Element Text Should be&quot;. In my opinion the code should be:</p>
  <pre><code>Element Text Should be    //*[@id=&quot;tbdyonmouseover&quot;]/tr[1]/td[1]/span   FirstName
  </code></pre>
  <p>but the actual code uses the exact same Locator with text() in this way:</p>
  <pre><code>Wait Until Element Is Visible  //*[@id=&quot;tbdyonmouseover&quot;]/tr[1]/td[1]/span[text()=&quot;FirstName&quot;]
  </code></pre>
  <p>Are they the same?
  Especially when i have a table of one row with several paired data , the code uses this method  extensively to check that all  nodes exists (Visible?) on the page. For Example, one row with 4 paired table data td</p>
  <pre><code> &lt;tbody id=&quot;grp_801body&quot;&gt;
     &lt;tr&gt;
       &lt;td class=&quot;Name&quot;&gt;&lt;span class=&quot;Line_Name&quot; title=&quot;&quot; style=&quot;&quot;&gt;**doc. number**&lt;/span&gt;&lt;/td&gt;
       &lt;td class=&quot;Value&quot; id=&quot;vv_8050755945013937879&quot;&gt;&lt;span class=&quot;nc-param-value&quot; style=&quot;margin-left:0px;&quot;&gt;&lt;span class=&quot;Line_Value&quot;&gt;111&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
       &lt;td class=&quot;Name&quot;&gt;&lt;span class=&quot;SpanInfoLine_Name&quot; title=&quot;&quot;&gt;**query number**&lt;/span&gt;&lt;/td&gt;
       &lt;td class=&quot;Value&quot; id=&quot;vv_8050755945013937878&quot;&gt;&lt;span class=&quot;nc-param-value&quot; style=&quot;margin-left:0px;&quot;&gt;&lt;span class=&quot;Line_Value&quot;&gt;**B2_G9R7_ln8**&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
     &lt;/tr&gt;
  </code></pre>
  <p>To check all these four tds in one place the code uses Wait instead of Element Text Should Be in the manner explained on top:</p>
  <pre><code>//*[@id=&quot;tbdyonmouseover&quot;]/tr[1]/td[1]/span[text()=&quot;doc. number&quot;]/../..//*[@id=&quot;tbdyonmouseover&quot;]/tr[1]/td[2]/span[text()=&quot;${Dossier_Number}&quot;]/../..//*[@id=&quot;tbdyonmouseover&quot;]/tr[1]/td[3]/span[text()=&quot;query number&quot;]/../..//*[@id=&quot;tbdyonmouseover&quot;]/tr[1]/td[4]/span[text()=&quot;${myVar}&quot;]
  </code></pre>
  <p>Is it correct especially for several nodes of a table row?</p>
  <p>Thank you</p>