So I'm running into the issue where I need 90% of the time
//*[@id='MainContent']/tbody/tr[18]/td[2]
while I need 10% of the time
//*[@id='MainContent']/tbody/tr[20]/td[2]
I'm wondering what the best approach to compensate for this change would be.
Here are pictures of the table, and the html code to the table.

I need to capture the 3 Bedrooms part, and there are times where the tr elements swap. Most of the time the first xpath code works, but I need a more efficient way of determining which xpath to use depending on the case at hand.
I know that a starts-with method exists for selenium, but would that allow me to search the actual TD text?

if 'Bedrooms' in driver.find_element_by_xpath('//*[@id='MainContent']/tbody/tr[18]/td[2]')?if 'something' in element.text:is about as direct as you can get.