Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
29 lines
631 B
JavaScript
Executable file
29 lines
631 B
JavaScript
Executable file
/* global module */
|
|
'use strict';
|
|
|
|
function Statusbar(client) {
|
|
this.client = client;
|
|
}
|
|
|
|
module.exports = Statusbar;
|
|
|
|
Statusbar.Selector = Object.freeze({
|
|
playingIndicator: '#statusbar-playing'
|
|
});
|
|
|
|
Statusbar.prototype = {
|
|
client: null,
|
|
|
|
get playingIndicator() {
|
|
this.client.switchToFrame();
|
|
return this.client.findElement(Statusbar.Selector.playingIndicator);
|
|
},
|
|
|
|
waitForPlayingIndicatorShown: function(shouldBeShown) {
|
|
if (shouldBeShown) {
|
|
this.client.helper.waitForElement(this.playingIndicator);
|
|
} else {
|
|
this.client.helper.waitForElementToDisappear(this.playingIndicator);
|
|
}
|
|
}
|
|
};
|