I'm working on some Android app tests at the moment & have a calendar style container with today's date in it and those for a week previous & week in the future.
I have used Host.Local.Find and a For Loop to find each element and correct the Xpath. I want to click on each of these elements in turn & carry out some validation on them before moving onto the next. So far I have:
//Counting the elemnts int dayCount = Host.Local.Find("/mobileapp[@title='androidapp']//form//container[1]/androidelement[@rid='tabBar']//container/text[@rid='text1']").Count; for (int i = 1; i <= dayCount; i++) { var dayContainer = Host.Local.Find("/mobileapp[@title='androidapp']//form//container[1]/androidelement[@rid='tabBar']//container[" + i + "]/text[@rid='text1']"); //Now what here? //I'm struggling to get an Android touch to take place here. }Once I've found the elements I'm lost though, can anyone advice on the next step?
Many thanks,
Steven