-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathindex.js
52 lines (47 loc) · 1.63 KB
/
index.js
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import findExtensions from './find';
import elementExtensions from './element';
import loggingCommands from './logging';
import gestureExtensions from './gesture';
import alertExtensions from './alert';
import executeExtensions from './execute';
import generalExtensions from './general';
import contextCommands from './context';
import webCommands from './web';
import orientationCommands from './orientation';
import fileMoveCommands from './file-movement';
import navigationCommands from './navigation';
import screenshotCommands from './screenshot';
import deviceCommands from './device';
import safariCommands from './safari';
import coverageCommands from './coverage';
import timeoutCommands from './timeout';
let commands = {};
for (let obj of [
findExtensions, elementExtensions, loggingCommands, gestureExtensions,
alertExtensions, executeExtensions, generalExtensions, contextCommands,
webCommands, orientationCommands, fileMoveCommands, navigationCommands,
screenshotCommands, deviceCommands, safariCommands, coverageCommands, timeoutCommands
]) {
Object.assign(commands, obj);
}
let iosCommands = {
find: findExtensions,
element: elementExtensions,
logging: loggingCommands,
gesture: gestureExtensions,
alert: alertExtensions,
execute: executeExtensions,
general: generalExtensions,
context: contextCommands,
web: webCommands,
orientation: orientationCommands,
file: fileMoveCommands,
navigation: navigationCommands,
screenshot: screenshotCommands,
device: deviceCommands,
safari: safariCommands,
coverage: coverageCommands,
timeout: timeoutCommands
};
export default commands;
export { commands, iosCommands };