Creating an extension for the jQueryUI Tab widget
jQuery UI is a jQuery user-interface library. It provides interactions, widgets, effects, and theming for building rich Internet applications. jQuery UI provides a number of UI widgets, such as Accordion, Datepicker, Slider, Dialog, and Tabs.
These widgets are built using a number of low-level HTML elements, such as DIVs, unordered lists, and input tags. While Selenium can recognize these elements individually, we can build support for Selenium to recognize these controls as native jQuery UI widgets. We can then perform native operations supported by jQuery framework.
In this recipe, we will implement support for the jQuery UI Tab widget.
Getting ready
Visit http://jqueryui.com/demos/tabs/ to understand more about the jQuery UI tabs widget. Explore how they are implemented and various options, methods and events related to this widget.
How to do it...
Similar to the WebTable
extension class we created earlier, we will create a JQueryUITab
class...