mardi 8 décembre 2020

How to get list of tables present in the page which are missing title/caption using selenium java

I have a page that has multiple tables on it. I need to write a code to validate:

  1. Total list of tables present on the page. List tables = driver.findElements(By.tagName("table")); System.out.println("Total Tables:" + tables.getSize();
  2. Total list of tables that are missing title / in it. I am not sure how to get through all the tables and check for . Please help...

Aucun commentaire:

Enregistrer un commentaire