Date Picker Automation for IOS app

Mobile Testing, Android App Testing.
Subhadip
Posts: 9
Joined: Fri Feb 01, 2019 8:57 am

Date Picker Automation for IOS app

Post by Subhadip » Fri Jul 12, 2019 12:49 pm

Hi,

I am trying to automate a date picker.
There are option to scroll for Date month and year.
My requirement says, to set particular date like: Jan 24,1990.

Can you please help me on this?

Thank you,
Subhadip
Attachments
date picker 2.PNG
Date picker Attribute
date picker 2.PNG (3.3 KiB) Viewed 159 times
date picker.PNG
Date picker
date picker.PNG (17.61 KiB) Viewed 159 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5068
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Date Picker Automation for IOS app

Post by odklizec » Fri Jul 12, 2019 12:57 pm

Hi,

Could you please post a Ranorex snapshot (NOT screenshot) of the datepicker? I think the easiest way would be using SetValue action? But I don't have a clue if it works with such control? Maybe you will have to use SetValue on an ancestor/descendant element of DatePicker control?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Subhadip
Posts: 9
Joined: Fri Feb 01, 2019 8:57 am

Re: Date Picker Automation for IOS app

Post by Subhadip » Sat Jul 13, 2019 5:51 am

Hi,

I have added the Ranorex Snapshot.
Could not really found any ancestor/descendant element where I can set value.

Thank you,
Subhadip
Attachments
DatePickerSnapshot.rxsnp
(54.35 KiB) Downloaded 7 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11963
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Date Picker Automation for IOS app

Post by Support Team » Wed Jul 17, 2019 9:55 am

Hello Subhadip,

Thank you for your post.

The DatePicker date can be set in user code:
repo.MyApp.UIDatePicker.Value = new System.DateTime(2019,05,05);
I hope this helps.

Sincerely,
Robert
.
Image