I'd like to keep my selectors simple when possible, and only use XPath where absolutely necessary. So rather than waiting for an XPath like //*[@class='files']/tbody/tr[1]/th[text()='filename']
I'd rather want to wait for the combination of the simple CSS selector .files tbody tr:first-child
and the simple XPath th[text()='filename']
.
presence_of_element_located
only takes a single locator, so presence_of_element_located((By.CSS_SELECTOR, '.files tbody tr:first-child'), (By.XPATH, 'th[text()='filename']'))
is out.
I can't chain these functions either, so presence_of_element_located((By.CSS_SELECTOR, '.files tbody tr:first-child')).presence_of_element_located((By.XPATH, 'th[text()='filename']'))
won't work.