How to get selected option using Selenium WebDriver with Python?
问题 How to get selected option using Selenium WebDriver with Python: Someone have a solution for a getFirstSelectedOption ? I'm using this to get the select element: try: FCSelect = driver.find_element_by_id('FCenter') self.TestEventLog = self.TestEventLog + "<br>Verify Form Elements: F Center Select found" except NoSuchElementException: self.TestEventLog = self.TestEventLog + "<br>Error: Select FCenter element not found" Is there an equivalent or something close to 'getFirstSelectedOption' like