File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import logger from "../logger";
55import config from "../config" ;
66import { trackMCP } from "../lib/instrumentation" ;
77import { maybeCompressBase64 } from "../lib/utils" ;
8+ const { remote } = require ( 'webdriverio' ) ;
89
910import {
1011 getDevicesAndBrowsers ,
@@ -42,13 +43,6 @@ enum Platform {
4243 IOS = "ios" ,
4344}
4445
45- // Initialize WebDriverIO dynamically to avoid top-level import issues
46- let wdio : WebDriver ;
47- ( async ( ) => {
48- const { remote } = await import ( "webdriverio" ) ;
49- wdio = { remote } ;
50- } ) ( ) ;
51-
5246/**
5347 * Launches an app on a selected BrowserStack device and takes a screenshot.
5448 */
@@ -114,7 +108,7 @@ async function takeAppScreenshot(args: {
114108 } ;
115109
116110 logger . info ( "Starting WebDriver session on BrowserStack..." ) ;
117- driver = await wdio . remote ( {
111+ driver = await remote ( {
118112 protocol : "https" ,
119113 hostname : "hub.browserstack.com" ,
120114 port : 443 ,
You can’t perform that action at this time.
0 commit comments