I am trying to grab a table from this page https://www.holidayfrancedirect.co.uk/holiday-rentals/RG007075/index.htm and other similar pages.
The table in question has a dynamic id table-XXXX
where X is a different number each time the page loads.
The table has the following attributes:
class="tablesaw tablesaw-stack table-bordered table-centered rates-availability-table"
data-tablesaw-mode="stack"
I have tried the following variants to locate this table (having consulted this post How to find element by part of its id name in selenium with python) but nothing seems to work.
find_elements_by_css_selector("[id*='tab']")
find_elements_by_css_selector("[class*='tablesaw']")
find_elements_by_css_selector("[data-tablesaw-mode*='stack']")