Skip to content

Commit 9a5470e

Browse files
committed
updated readMe
1 parent 6d19d8e commit 9a5470e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,45 @@ driver.findElementByAccessibilityId("login").click();
6767
driver.findElementByAccessibilityId("slider1").click();
6868
driver.findElementByAccessibilityId("login").sendKeys('Hello');
6969
```
70+
## Configure Wait timeout in test
71+
72+
WDIO Example
73+
74+
```
75+
driver.addCommand(
76+
'setWaitPluginTimeout',
77+
command('POST', '/session/:sessionId/waitplugin/timeout', {
78+
command: 'setWaitPluginTimeout',
79+
parameters: [
80+
{
81+
name: 'data',
82+
type: 'object',
83+
description: 'a valid parameter',
84+
required: true,
85+
},
86+
],
87+
})
88+
);
89+
90+
driver.addCommand(
91+
'getWaitTimeout',
92+
command('GET', '/session/:sessionId/waitplugin/getTimeout', {
93+
command: 'getWaitTimeout',
94+
parameters: [],
95+
returns: {
96+
type: 'object',
97+
name: 'activity',
98+
description: 'Name of the current activity',
99+
},
100+
})
101+
);
102+
```
103+
104+
Usage
105+
106+
```
107+
await driver.setWaitPluginTimeout({ timeout: 1111, intervalBetweenAttempts: 11 });
108+
```
70109

71110
Server logs will be as below:
72111

0 commit comments

Comments
 (0)