.fullscreenWindow() Suggest edits
Sets the current window state to fullscreen.
Usage
Parameters
Name | Type | description |
---|---|---|
callback Optional |
function | Optional callback function to be called when the command finishes. |
Example
module.exports = {
'demo Test': function(browser) {
browser.fullscreenWindow(function(result) {
console.log(result);
});
},
'ES6 async demo Test': async function(browser) {
const result = await browser.fullscreenWindow();
console.log('result value is:', result.value);
}
}