Skip to content

Commit 3986c7f

Browse files
authored
chore: a few ignore for upcoming chromedriver update (#45)
* chore: a few ignore for upcoming chromedriver update * chore: tweak
1 parent d365299 commit 3986c7f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/driver.js

+3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export class WebOSDriver extends BaseDriver {
191191
*/
192192
async startChromedriver({debuggerHost, debuggerPort, executable}) {
193193
this.#chromedriver = new Chromedriver({
194+
// @ts-ignore bad types
194195
port: await getPort(),
195196
executable,
196197
});
@@ -254,6 +255,7 @@ export class WebOSDriver extends BaseDriver {
254255
if (this.#chromedriver) {
255256
log.debug(`Stopping chromedriver`);
256257
// stop listening for the stopped state event
258+
// @ts-ignore
257259
this.#chromedriver.removeAllListeners(Chromedriver.EVENT_CHANGED);
258260
try {
259261
await this.#chromedriver.stop();
@@ -312,6 +314,7 @@ export class WebOSDriver extends BaseDriver {
312314
async #executeChromedriverScript(endpointPath, script, args = []) {
313315
const wrappedScript =
314316
typeof script === 'string' ? script : `return (${script}).apply(null, arguments)`;
317+
// @ts-ignore
315318
return await this.#chromedriver.sendCommand(endpointPath, 'POST', {
316319
script: wrappedScript,
317320
args,

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)