Skip to content

Unable to get text from disabled ComboBox #1332

@sszemer

Description

@sszemer

Hi,
I'm trying to get text from a disabled ComboBox but with no success so far.
every other disabled element is fine, just the ComboBox.
UISpy shows:
image
How element looks like:
image

what debugger shows for this element:
image
so my method to get text does not work correctly as it returns 'System.Xml.XmlElement' instead of 'TELEFONICA'
public string GetGlobalName() { var pane = driver.FindElementByAccessibilityId("AddEditGridScrollViewer"); var cbox = pane.FindElement(By.ClassName("ComboBox")); return cbox.Text; }
Am i doing something wrong? Anyone has an idea how to get the text?
I would appreciate some help :)
cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions