Unable to print text of options in select in selenium python
问题 I try to print out text of all options in select element. But the result is just null string despite the len of that list is true. I have read some other similar questions but no soltion works for me. here are some of my attempts: Attempt 1: select = UI.Select(browserdriver.find_element_by_xpath("//select[@id='Xuất xứ']")) #select = Select(browserdriver.find_element_by_xpath("//select[@id='Xuất xứ']")) options = select.options print(len(options)) for item in options: print(item.text, item.get