title: "webelement object is not iterable" when trying to access dropdown menu with Selenium
body: <p>The below function is called after a user clicks to select a dropdown menu with Selenium. I want to create a tkinter window that displays all of the options of the dropdown menu, and to print the users selection.</p>
  <p>I'm getting &quot;webelement object is not iterable.&quot; When finding similar issues online, it's because they were doing &quot;find element by&quot; instead of &quot;find elements by.&quot; The problem is I'm not finding an element by a predefined id, I'm manipulating the currently active element. Is there some way to get all of the options starting at the active element like I'm doing here?</p>
  <p>In runtime, this element is selected by the user while the program is running, so using &quot;find elements by&quot; isn't an option unless the needed attributes can be extracted by manipulating the active element.</p>
  <pre><code>def SubmitInput(dropdown_selection):
      print(dropdown_selection)
      confirm_dropdown_input_window.destroy()
  
  active_element = driver.switch_to.active_element
  options = [x for x in active_element]
  confirm_dropdown_input_window = Tk()
  enter_correct_dropdown_prompt = Label(confirm_dropdown_input_window,
                                    text='Please select the correct value below.')
  dropdown = OptionMenu(confirm_dropdown_input_window, options[0], options, command=SubmitInput)
  enter_correct_dropdown_prompt.grid(row=0, column=0)
  dropdown.grid(row=1, column=0)
  confirm_dropdown_input_window.mainloop()
  </code></pre>