question

DanMacDonald-5017 avatar image
0 Votes"
DanMacDonald-5017 asked RobCaplan edited

How can you get the Text/Label for the selected Row in a DateTime column in iOS using UITEST Xamarin

I have a Xamarin.Forms app on iOS and am using UITest to test some things.

I am trying to get a text presentation of the value that is chosen in a Date and DateTime spinner in iOS.

As an example, I want to know it is "April" that is the choice for Month.

I can use selectedRowInComponent as shown below to find the index for the row in the column in the UIPickerView but I want the text displayed for that row.

app.Query(x=>x.Class("UIPickerView").Invoke("selectedRowInComponent", 0))

not-supported
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DanMacDonald-5017 sorry for the late response, but UITest related questions is supported by App Center, you can turn to app center for more help.

0 Votes 0 ·

Thanks Nicole. I didn't realize App Center was the place to pose questions.

0 Votes 0 ·

you're welcome : )

0 Votes 0 ·

0 Answers