@wix-pilot/webdriverio-appium 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -6
- package/dist/wdio.conf.d.ts +28 -0
- package/dist/wdio.conf.js +34 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -160,13 +160,11 @@ class WebdriverIOAppiumFrameworkDriver {
|
|
|
160
160
|
title: "Native Actions",
|
|
161
161
|
items: [
|
|
162
162
|
{
|
|
163
|
-
signature:
|
|
164
|
-
description: "
|
|
165
|
-
example:
|
|
166
|
-
await (await $('~loginButton')).waitForEnabled();
|
|
167
|
-
await (await $('~loginButton')).click();`,
|
|
163
|
+
signature: ".click()",
|
|
164
|
+
description: "Triggers a click (or tap) event on an element.",
|
|
165
|
+
example: "// For a button element\nawait (await $('~loginButton')).waitForEnabled();\nawait (await $('~loginButton')).click();\n\n// For a non-button element\nawait (await $('~loginButton')).waitForDisplayed();\nawait (await $('~loginButton')).click();",
|
|
168
166
|
guidelines: [
|
|
169
|
-
"
|
|
167
|
+
"For button elements, always use await (await $('~element')).waitForEnabled() to ensure the element is enabled before clicking.",
|
|
170
168
|
],
|
|
171
169
|
},
|
|
172
170
|
{
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const config: {
|
|
2
|
+
runner: string;
|
|
3
|
+
specs: string[];
|
|
4
|
+
maxInstances: number;
|
|
5
|
+
capabilities: {
|
|
6
|
+
platformName: string;
|
|
7
|
+
deviceName: string;
|
|
8
|
+
automationName: string;
|
|
9
|
+
app: string;
|
|
10
|
+
}[];
|
|
11
|
+
logLevel: string;
|
|
12
|
+
bail: number;
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
waitforTimeout: number;
|
|
15
|
+
connectionRetryTimeout: number;
|
|
16
|
+
connectionRetryCount: number;
|
|
17
|
+
services: string[];
|
|
18
|
+
appium: {
|
|
19
|
+
command: string;
|
|
20
|
+
};
|
|
21
|
+
framework: string;
|
|
22
|
+
reporters: string[];
|
|
23
|
+
mochaOpts: {
|
|
24
|
+
ui: string;
|
|
25
|
+
timeout: number;
|
|
26
|
+
};
|
|
27
|
+
before: () => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.config = void 0;
|
|
4
|
+
// wdio.conf.ts
|
|
5
|
+
exports.config = {
|
|
6
|
+
runner: 'local',
|
|
7
|
+
specs: ['./examples/**/*.test.ts'],
|
|
8
|
+
maxInstances: 1,
|
|
9
|
+
capabilities: [{
|
|
10
|
+
platformName: 'iOS',
|
|
11
|
+
deviceName: 'iPhone 14',
|
|
12
|
+
automationName: 'XCUITest',
|
|
13
|
+
app: './Users/tzviels/Library/Developer/Xcode/DerivedData/ExampleApp-ccggovixskkojadmtpriqiridvii/Build/Products/Debug-iphonesimulator/ExampleApp.app',
|
|
14
|
+
}],
|
|
15
|
+
logLevel: 'info',
|
|
16
|
+
bail: 0,
|
|
17
|
+
baseUrl: 'http://localhost',
|
|
18
|
+
waitforTimeout: 10000,
|
|
19
|
+
connectionRetryTimeout: 90000,
|
|
20
|
+
connectionRetryCount: 3,
|
|
21
|
+
services: ['appium'],
|
|
22
|
+
appium: {
|
|
23
|
+
command: 'appium',
|
|
24
|
+
},
|
|
25
|
+
framework: 'mocha',
|
|
26
|
+
reporters: ['spec'],
|
|
27
|
+
mochaOpts: {
|
|
28
|
+
ui: 'bdd',
|
|
29
|
+
timeout: 60000,
|
|
30
|
+
},
|
|
31
|
+
before: function () {
|
|
32
|
+
global.driver = browser;
|
|
33
|
+
},
|
|
34
|
+
};
|