Cannot get text value from TextBoxMaskBox
Posted: Fri May 28, 2010 8:13 pm
Hi,
I'm having trouble getting the text value from a UI element in my program. There is a TextBoxMaskBox that is nested inside a DevExpress.XtraEditors.DateEdit item. The DateEdit item has no .TextValue extension in code for me to access, and the MaskBox does not recognise that it has text (in Ranorex Properties the Text field is blank).
Here is a picture of the DevExpress DateEdit element and the properties in Studio:
And here is the Xpath that I use to get the maskbox:
/form[@controlname='MainForm']/element/form/container[@controlname='dockPanel1']/container/container[@controlname='gcTimePeriod']/element[@controlname='dateEditTimePeriodStart']/text[@controltypename='TextBoxMaskBox']
Thanks,
Ryan
I'm having trouble getting the text value from a UI element in my program. There is a TextBoxMaskBox that is nested inside a DevExpress.XtraEditors.DateEdit item. The DateEdit item has no .TextValue extension in code for me to access, and the MaskBox does not recognise that it has text (in Ranorex Properties the Text field is blank).
Here is a picture of the DevExpress DateEdit element and the properties in Studio:
And here is the Xpath that I use to get the maskbox:
/form[@controlname='MainForm']/element/form/container[@controlname='dockPanel1']/container/container[@controlname='gcTimePeriod']/element[@controlname='dateEditTimePeriodStart']/text[@controltypename='TextBoxMaskBox']
Thanks,
Ryan