Added static methods to Widgets to fetch all instances on a page.
Added static methods to Widgets to fetch all instances on a page.

Motivated by automation tests, (fixes issue https://www.pivotaltracker.com/story/show/11603837)

Now, on a page with widget(s):
// returns all widgets
mirosubs.widget.Widget.getAllWidgets()

// returns the wdiget with a given url
mirosubs.widget.Widget.getWidgetByURL(aURL)

// returns all widgets with a url (can be more than one)
mirosubs.widget.Widget.getAllWidgetsByURL(aURL)

// once you have a widget, you can play / pause it
mirosubs.widget.Widget.getAllWidgets()[0].play()
mirosubs.widget.Widget.getAllWidgets()[0].pause()

norayr/unisubs,norayr/unisubs,wevoice/wesub,eloquence/unisubs,pculture/unisubs,wevoice/wesub,norayr/unisubs,wevoice/wesub,eloquence/unisubs,pculture/unisubs,ujdhesa/unisubs,ujdhesa/unisubs,ReachingOut/unisubs,pculture/unisubs,ujdhesa/unisubs,ReachingOut/unisubs,eloquence/unisubs,ofer43211/unisubs,pculture/unisubs,ofer43211/unisubs,ofer43211/unisubs,ReachingOut/unisubs,wevoice/wesub,ofer43211/unisubs,ReachingOut/unisubs,ujdhesa/unisubs,eloquence/unisubs,norayr/unisubs