title: How to skip a table row
body: <p>I have created a small script, where it loops and deletes the unwanted rows in the table, but there is one row in the table that can not be removed. How can I skip that row and move on to the next one?</p>
  
  <p>This is my script:</p>
  
  <pre><code>for(int i=0; i&lt;25; i++){ 
  
          if(driver.findElement(By.xpath(PvtConstants.READ_ADVERTISRERS_ADVERTISER_IDS)).getText().contains("Skip Me")){
              //what to add here to skip the "Skip Me" text????
          }
  
          //select the item in the table
          driver.findElement(By.xpath(PvtConstants.READ_ADVERTISRERS_ADVERTISER_IDS)).click();
  
          //click the delete button
          driver.findElement(By.xpath(".//*[@id='deleteAdv']")).click();
  </code></pre>
  
  <p>This is what the column looks like. I want to skip RealMedia, and then remove all items before and after.</p>
  
  <p><img src="https://i.stack.imgur.com/IryIy.png" alt="enter image description here"></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;table class="table smallInput dataTable" id="dataTableAdvertisers" "&gt;
  &lt;thead&gt;
  &lt;tr role="row" style="height: 0px;"&gt;
  &lt;th class="sorting_asc" tabindex="0" "&gt;&lt;/th&gt;
  &lt;th class="sorting" tabindex="0" "&gt;&lt;/th&gt;
  &lt;th class="sorting" tabindex="0" "&gt;&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody role="alert" aria-live="polite" aria-relevant="all"&gt;
  &lt;tr class="odd"&gt;
  &lt;td class=""&gt;
  &lt;a href="getadvertiserdetailsNew.do?advertiserKey=198909"&gt;RealMedia&lt;/a&gt;&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;
  &lt;/tr&gt;&lt;tr class="even"&gt;
  &lt;td class=""&gt;
  &lt;a href="getadvertiserdetailsNew.do?advertiserKey=198910"&gt;teset2&lt;/a&gt;&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;
  &lt;td class=""&gt;---&lt;/td&gt;&lt;td class=""&gt;---&lt;/td&gt;
  &lt;/tr&gt;&lt;tr class="odd"&gt;
  
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>