I have been working with CodedUI in a bootstrap UI, which my currently working solution is built on.
I recently noticed when automating the functionalities for a Smoke test, the recorded steps (CUI using VS2013) for business functionality (creating a budget period) where a date picker involves in, the automate execution keep getting failed after clicking on the dropdown on date picker (when running the test method).
I recorded several times and tried to recreate this issue and I figured out, that the default selected date in the picker must be the date which was there when the test method was recording to run the method.
In any-case if I run the test method after few days from the recording date, since the date picker always gets the current (system date) as the preselected date, the execution of the test method fails from that point onwards (unless if I manually chose the date which i recorded the test method from the date picker).
I tried eliminating the test property (inner text) where it spies for the preselected date from the UIMap, but I was unable to find a proper solution for it.
If there is any CodedUI fluent person who has dealt with a bootstrap Datepicker earlier can you kindly assist me?
Or if anyone knows how to eliminate a search property from spying for a UI property, (only if it is a ethical attempt), will anyone be able to kindly assist me?
Code Snipets:
Image 2 : UIStartDateEdit Class in UIMap.Designer.cs
Image 3 : AddBudgetParams Class in UIMap.Designer.cs
Image 4 : UIItemTable Method and UIItem1Cell in UIMap.Designer.cs