Skip to content

Select a QComboBox #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chruetli opened this issue Sep 30, 2019 · 1 comment
Open

Select a QComboBox #71

chruetli opened this issue Sep 30, 2019 · 1 comment

Comments

@chruetli
Copy link

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>
@kraemer-sw
Copy link

myComboBox.send_keys("label")
is the solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants