Hello :)
Kind of like:
Does this make sense ok? :)
regards
Graham
Kind of like:
if self.driver.find_element_by_xpath("//select[contains(text(), 'month')]"): print("FOUND! an element that contains the word 'month' has been found!") select = Select(self.driver.find_element_by_xpath("//select[contains(text(), 'month')]")) select.select_by_index(2)In this mockup if the find element contains a keyword (month in this example) it will randomly select a drop down value.
Does this make sense ok? :)
regards
Graham