Hi,
I want to know how I can retrieve the value (time) listed in time fields on a form.
Here is the path to the first time field (which is a list) on the form:
/form[@controlname='frmMain']/container[@controlname='cwtcMain']/container/container[@controlname='pnlSearch']/container[@controlname='dtFrom']/datetime[@controlname='dtpTime']/list[@accessiblename='8:32 AM']
The list is embedded in the datetime field.
Have attached a visual of it.
retrieve values from 2 time components
retrieve values from 2 time components
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: retrieve values from 2 time components
Hi,
How to create a Ranorex Snapshot
With this snapshot we can show you a way to retrieve the value of your date field.
Regards,
Peter
Ranorex Team
Would it be possible to post us a Ranorex Snapshot for further information?bsing wrote:I want to know how I can retrieve the value (time) listed in time fields on a form.
How to create a Ranorex Snapshot
With this snapshot we can show you a way to retrieve the value of your date field.
Regards,
Peter
Ranorex Team
Re: retrieve values from 2 time components
Attached snapshot.
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: retrieve values from 2 time components
Hi,
you can use following code snippet to log out the time value held by the list item:
Tobias
Ranorex Support Team
you can use following code snippet to log out the time value held by the list item:
List your_time = "/form[@controlname='frmMain']/container[@controlname='cwtcMain']/container[2]/container[@controlname='pnlSearch']/container[@controlname='dtFrom']/datetime[@controlname='dtpTime']/list"; Report.Info(your_time.Element.GetAttributeValue("Accessiblename").ToString());Regards,
Tobias
Ranorex Support Team
Re: retrieve values from 2 time components
cannot see all of your code until I post something again.
Re: retrieve values from 2 time components
This is brilliant! - thankyou.