Creating an extension for the jQueryUI tab widget
jQuery UI is a jQuery user-interface library. It provides interactions, widgets, effects, and theming to build 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 along with 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...