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:

How element looks like:

what debugger shows for this element:

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
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:
How element looks like:
what debugger shows for this element:

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