-
-
Notifications
You must be signed in to change notification settings - Fork 264
/
wdio.shared.local.appium.conf.ts
38 lines (36 loc) · 1.3 KB
/
wdio.shared.local.appium.conf.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { config as baseConfig } from './wdio.shared.conf.js';
export const config: WebdriverIO.Config = {
...baseConfig,
//
// ======
// Appium
// ======
//
services: [
...baseConfig.services || [],
[
'appium',
{
// This will use the globally installed version of Appium
// command: 'appium',
args: {
// This is needed to tell Appium that we can execute local ADB commands
// and to automatically download the latest version of ChromeDriver
relaxedSecurity: true,
// Write the Appium logs to a file in the root of the directory
log: './logs/appium.log',
},
},
],
],
before: async ()=> {
// Only update the setting for Android, this is needed to reduce the timeout for the UiSelector locator strategy,
// which is also used in certain tests, so it will not wait for 10 seconds if it can't find an element
if (driver.isAndroid){
await driver.updateSettings({
// This reduces the timeout for the UiUiSelector from 10 seconds to 3 seconds
waitForSelectorTimeout: 3 * 1000
});
}
}
};