Skip to content

Commit

Permalink
HOF-475: Updated browser.js file to resolve test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
SavantDhindsaHO committed Nov 6, 2023
1 parent a602929 commit f8497fe
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions test/functional-tests/lib/browser.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
'use strict';

const webdriverio = require('webdriverio');
const { remote } = require('webdriverio');
/* const options = {
deprecationWarnings: false,
desiredCapabilities: {
browserName: 'chrome'
}
}; */
let browser;
(async () => {
browser = await remote({
capabilities: {
browserName: 'chrome'
}
});

const client = webdriverio.remote({
/* const client = webdriverio.remote({
capabilities: {
browserName: 'chrome'
}
});
});*/

/* const client = webdriverio
/* const client = webdriverio
.remote(options); */

client.addCommand('goto', require('../../../utilities').autofill(client));
browser.addCommand('goto', require('../../../utilities').autofill(client));
})().catch(e => console.error(e));

module.exports = () => client.init();

0 comments on commit f8497fe

Please sign in to comment.