qtwebdriver
qtwebdriver copied to clipboard
Select a QComboBox
How can I select an item from a QComboBox? The Select
from Selenium doesn't work.
from selenium import webdriver
from selenium.webdriver.support.select import Select
driver = webdriver.Remote(...)
myComboBox = driver.find_elements_by_xpath("//QComboBox[@id='aComboBox']")[0]
select = Select(privLevelCBox)
UnexpectedTagNameException: Message: Select only works on <select> elements, not on <QComboBox>
myComboBox.send_keys("label")
is the solution...