VulpesOS/gaia/apps/keyboard/test/marionette/lib/base.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

34 lines
547 B
JavaScript
Executable file

'use strict';
function Base(client, origin) {
this.client = client;
this.origin = origin;
this.elements = {};
}
Base.prototype = {
launch: function() {
this.client.apps.launch(this.origin);
this.switchTo();
},
switchTo: function() {
this.client.switchToFrame();
this.client.apps.switchToApp(this.origin);
this.waitForReady();
},
close: function() {
this.client.apps.close(this.origin);
},
waitForReady: function() {
this.client.helper.waitForElement('body');
}
};
module.exports = Base;