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";
5
5
import config from "../config" ;
6
6
import { trackMCP } from "../lib/instrumentation" ;
7
7
import { maybeCompressBase64 } from "../lib/utils" ;
8
+ const { remote } = require ( 'webdriverio' ) ;
8
9
9
10
import {
10
11
getDevicesAndBrowsers ,
@@ -42,13 +43,6 @@ enum Platform {
42
43
IOS = "ios" ,
43
44
}
44
45
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
-
52
46
/**
53
47
* Launches an app on a selected BrowserStack device and takes a screenshot.
54
48
*/
@@ -114,7 +108,7 @@ async function takeAppScreenshot(args: {
114
108
} ;
115
109
116
110
logger . info ( "Starting WebDriver session on BrowserStack..." ) ;
117
- driver = await wdio . remote ( {
111
+ driver = await remote ( {
118
112
protocol : "https" ,
119
113
hostname : "hub.browserstack.com" ,
120
114
port : 443 ,
You can’t perform that action at this time.
0 commit comments