I'm attempting to determine the number of columns in a specific table, but some are disabled - I'd like to know if it's possible to get the count without including the disabled ones (only counting the visible columns).
As you can see in the image attached, certain tds are disabled.
The command I've tried using is:
driver.findElements(By.xpath("//*/table[@id='TABLE NAME]/tbody/tr[2]/td[@style='display:none;']")).size()
The issue is that the style='display:none;'
may not work for future tables if the value for disabled tds differs. Thank you in advance.