Straight up to your questions:
1. I believe you are talking about the Kendo UI DatePicker here, as the Calendar does not have open/close states - it is always visible. The DatePicker can be opened using the
"open" method from the API, as described in the following documentation article:
For example if you navigate to our online demos
you can achieve the desired behavior with:
2. As you can see in the following dojo snippet
there is only one <input> element in the HTML section, but in the DOM there are a couple of <span>-s that are created from the Kendo UI framework.
Generally speaking, creating functional tests for Kendo UI application is not a trivial task, as it requires very detailed understanding on how Kendo UI widgets function: on which DOM element an event should be executed, when some of the hidden elements are shown and how we should use them. The generated DOM is complex because of the extensive functionality that Kendo UI controls provide. In the “Creating testable UI" section of his article “Functional GUI Testing and Kendo UI” Jim Holmes addresses the most common challenges Kendo UI application testers meet in their everyday work.
As we do not officially support Jasmine or any other third party testing automation tool, we recommend you to check out Telerik TestStudio – a test automation product with built-in KendoUI translators. More detailed information can be found at:http://www.telerik.com/automated-testing-tools/campaigns/testing-kendoui-apps.aspx.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI