Skip to content

Select a QComboBox #71

Open
Open
@chruetli

Description

@chruetli

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions