Is there any methods for python+selenium to find parent elements, brother elements, or child elements just like driver.find_element_parent? or driver.find_element_next? or driver.find_element_previous? eg: I’ve tried like below, but fail: How can I get the parent of input element and then, finally, get the option selected? Answer You can find a parent element by using .. xpath: What about making a