Skip to content
panama69 edited this page Feb 24, 2016 · 2 revisions

Welcome to the AutomationPracticeTableJava (LeanFT script using Java)

/* Goal as desribed on: http://toolsqa.com/selenium-webdriver/handle-dynamic-webtables-in-selenium-webdriver/ *

    1. Launch new Browser
    1. Open URL “http://toolsqa.com/automation-practice-table/”
    1. Get the value from cell ‘Dubai’ with using dynamic xpath
    1. Print all the column values of row ‘Clock Tower Hotel’
  • This test was inspired when I came across the above example and figured
  • there had to be a better an easier way in LFT to accomplish this rather
  • than the cumbersome and in flexible methed shown using Xpath in Selenium.
  • Yes, there are other ways to accomplish this in Selenium without using
  • Xpath but from my research it is still cumbersome as it doesn't provide
  • you with a mechanism to find a row based on its contents and then process
  • the row easily.
  • When I say easily, I am referring to the fact that LFT can accomplish this
  • without needing to knwo the row and column counts or iteratively loop
  • through to find ID, tags or even resort to CSS which still needs to know
  • column number value. */

Clone this wiki locally