File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,45 @@ driver.findElementByAccessibilityId("login").click();
6767driver.findElementByAccessibilityId("slider1").click();
6868driver.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
71110Server logs will be as below:
72111
You can’t perform that action at this time.
0 commit comments