@@ -33,23 +33,28 @@ export async function getProxyDriver(
3333 strategy : string ,
3434) : Promise < JWProxy | undefined > {
3535 if ( strategy . startsWith ( '-flutter' ) || FLUTTER_LOCATORS . includes ( strategy ) ) {
36- this . log . debug ( `getProxyDriver: using flutter driver, strategy: ${ strategy } ` ) ;
36+ this . log . debug (
37+ `getProxyDriver: using flutter driver, strategy: ${ strategy } ` ,
38+ ) ;
3739 return this . proxy ;
3840 } else if ( this . proxydriver instanceof AndroidUiautomator2Driver ) {
39- this . log . debug ( 'getProxyDriver: using AndroidUiautomator2Driver driver for Android' ) ;
41+ this . log . debug (
42+ 'getProxyDriver: using AndroidUiautomator2Driver driver for Android' ,
43+ ) ;
4044 // @ts -ignore Proxy instance is OK
4145 return this . proxydriver . uiautomator2 . jwproxy ;
42- } else if ( this . proxydriver instanceof XCUITestDriver ) {
46+ } else if ( this . proxydriver instanceof XCUITestDriver ) {
4347 this . log . debug ( 'getProxyDriver: using XCUITestDriver driver for iOS' ) ;
4448 // @ts -ignore Proxy instance is OK
4549 return this . proxydriver . wda . jwproxy ;
46- }
47- else if ( this . proxydriver instanceof Mac2Driver ) {
50+ } else if ( this . proxydriver instanceof Mac2Driver ) {
4851 this . log . debug ( 'getProxyDriver: using Mac2Driver driver for mac' ) ;
4952 // @ts -ignore Proxy instance is OK
5053 return this . proxydriver . wda . proxy ;
51- } else {
52- throw new Error ( `proxydriver is unknown type (${ typeof this . proxydriver } )` ) ;
54+ } else {
55+ throw new Error (
56+ `proxydriver is unknown type (${ typeof this . proxydriver } )` ,
57+ ) ;
5358 }
5459}
5560
0 commit comments