Forum Discussion
I'm not familar with android automation directly... but this seems to be a similar kind of date picker as I've seen in other desktop applications. Generally speaking, in those applications, it's the same deal... the individual dates (5, 10, 31, etc) and controls in the picker aren't necessarily exposed. However, there are functions and methods associated with the date picker that may be exposed in the object that can be used to operate the picker. Would be helpful to see an object browser view of your object with all properties and methods exposed.
- Tuerask8 years agoNew Contributor
Thanks for the reply!
Screenshots are below with properties and methods. There are hundreds of methods in the java category, so that is not included in the ss :)
- tristaanogre8 years agoEsteemed Contributor
OK... well, based upon the documentation for testComplete, the SimpleMonthView is not an "out of the box" supported class for Android support. This does not mean you can't work with it, just that many of the "native" objects and such aren't going to be exposed.
As with desktop and web applications, if there is not an object supported directly, you might be able to edit your project's object mapping and add it in. Go to Tools -> Current Project Properties -> Object Mapping and, based upon the object, you might want to try adding it under the Calendar section... you might be able to, even, simply select the "Derived classes" option beside the Calendar view and see if that works for you as well.
If that doesn't work for you, then those Java properties and methods that you didn't show in the screenshot would be the next place to go in order to be able to work with the object.
- Tuerask8 years agoNew Contributor
Thank you for the reply. I did not know about object mapping, and it was valuable information to read about. Unfortunately it did not solve the problem. Adding SimpleMonthView seems to crash the app when i try to use object spy on the object.
I do know more now, which will help me troubleshoot with my developers and see if we can figure out a solution, so thank you! I will try and delve into the java methods and see if i can get access to the child objects through there.
Related Content
Recent Discussions
- 6 days ago
- 6 days ago
- 10 days ago