Is a DateTime element Read-Only? : Automation API

Is a DateTime element Read-Only?

Class library usage, coding and language questions.

Is a DateTime element Read-Only?

Postby Aracknid » Wed Jun 15, 2011 9:08 pm

I've got a Silverlight DateTime element and I can attach to it without issues. When I read it's value, I get the current selected date. However, I want to set the date. Is this possible or is this control read-only? Do I have to write code to work with all the underlying buttons that represent the individual days?

Thanks,

Aracknid
User avatar
Aracknid
 
Posts: 126
Joined: Tue Aug 10, 2010 4:23 pm
Location: Toronto, Ontario, Canada

Re: Is a DateTime element Read-Only?

Postby Support Team » Thu Jun 16, 2011 2:38 pm

Hi,

If you use the DateTimePicker you can set the text of the ComboBox, but if you use the DateTime calendar there is no change to set the value, because the attributes are read only. We use the UIAutomation framework of Microsoft and this framework return us the value as Read Only property. The only way to set the DateTime of the calendar is to use the button control inside this element.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests