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
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
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
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

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