Skip to content

Commit bc8d4c4

Browse files
committed
fix: add appium chrome options for Android
1 parent e8f617f commit bc8d4c4

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

tests/configs/lambdatest.android.emus.web.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function createCaps({
7070
mobileSpecs: string;
7171
build: string;
7272
deviceOrientation: DeviceOrientation;
73-
7473
}): {
7574
'lt:options': {
7675
deviceName: string,
@@ -80,19 +79,16 @@ function createCaps({
8079
build: string,
8180
w3c: boolean,
8281
queueTimeout: number,
83-
/**
84-
* There are issues with the Chrome version on LT
85-
* the installed versions sometimes give tabs as the first page.
86-
* This should be fixed in the future and below is a workaround
87-
*/
88-
chromeVersion: 126,
8982
},
9083
specs: string[];
9184
'wdio-ics:options': {
9285
logName: string;
9386
commands: string[];
9487
};
9588
'wdio:enforceWebDriverClassic': boolean;
89+
'appium:chromeOptions': {
90+
args: string[];
91+
};
9692
} {
9793
const driverScreenshotType = 'NativeWebScreenshot'
9894
const adjustedDeviceName = deviceName !== '' ?
@@ -119,6 +115,13 @@ function createCaps({
119115
.toLowerCase()}${driverScreenshotType}${platformVersion}`,
120116
commands: wdioIcsCommands,
121117
},
122-
'wdio:enforceWebDriverClassic': true
118+
'wdio:enforceWebDriverClassic': true,
119+
'appium:chromeOptions': {
120+
args: [
121+
'--disable-features=StartSurfaceAndroid,GridTabSwitcherForTablets,TabGridLayout',
122+
'--no-first-run',
123+
'--disable-fre'
124+
]
125+
}
123126
}
124127
}

0 commit comments

Comments
 (0)