title: How to get Dynamic Xpath of a webtable?
body: <pre><code>List&lt;WebElement&gt;table=driver.findElements(By.xpath("//*[@id=\"prodDetails\"]/div[2]/div[1]/div/div[2]/div/div/table/tbody/tr"));
  JavascriptExecutor jse = (JavascriptExecutor) driver;
  // jse.executeScript("arguments[0].scrollIntoView();",table);
  jse.executeScript("arguments[0].style.border='3px solid red'",table);
  int row= table.size();
  </code></pre>
  
  <p>I am unable to get the required no of row and column.The xpath i provided does not find the table on site   </p>
  
  <p>Link : <a href="https://www.amazon.in/Samsung-G-550FY-On5-Pro-Gold/dp/B01FM7GGFI/ref=sr_1_4?s=electronics&amp;ie=UTF8&amp;qid=1530631121&amp;sr=1-4&amp;keywords=Samsung%20Phones" rel="nofollow noreferrer">Click here</a></p>
  
  <p>I have to fetch the specification of the mobile.</p>