forked from nightwatchjs/nightwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.json
76 lines (76 loc) · 2.78 KB
/
mocks.json
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"port" : 10195,
"mocks" : [
{
"url" : "/wd/hub/session",
"postdata" : "{\"desiredCapabilities\":{\"browserName\":\"firefox\",\"javascriptEnabled\":true,\"acceptSslCerts\":true,\"platform\":\"ANY\"},\"sessionId\":null}",
"response" : "{\"status\": 0, \"sessionId\": \"1352110219202\", \"value\": { \"javascriptEnabled\": true, \"browserName\": \"firefox\"}, \"state\": null}",
"responseHeaders" : {
},
"statusCode" : 201,
"method": "POST"
},
{
"url" : "/wd/hub/session",
"postdata" : "{\"desiredCapabilities\":{\"browserName\":\"chrome\",\"javascriptEnabled\":true,\"acceptSslCerts\":true,\"platform\":\"ANY\"},\"sessionId\":null}",
"responseHeaders" : {
"location" : "http://localhost:10195/wd/hub/session/1352110219202"
},
"statusCode" : 302,
"method": "POST"
},
{
"url" : "/wd/hub/session/1352110219202",
"response" : "{\"status\": 0, \"sessionId\": \"1352110219202\", \"value\": { \"javascriptEnabled\": true, \"browserName\": \"chrome\"}, \"state\": null}",
"responseHeaders" : {
},
"statusCode" : 201,
"method": "GET"
},
{
"url" : "/wd/hub/session/1352110219202",
"method": "DELETE"
},
{
"url" : "/wd/hub/session/1352110219202/url",
"postdata" : "{\"url\":\"http://localhost\"}"
},
{
"url" : "/wd/hub/test",
"response" : "{\"status\":0}"
},
{
"url" : "/wd/hub/test_error",
"response" : "{\"status\":7,\"value\":{\"screen\":\"screenshot_data\"}}",
"statusCode" : 500
},
{
"url" : "/wd/hub/session/1352110219202/element",
"postdata" : "{\"using\":\"css selector\",\"value\":\"#weblogin\"}",
"response" : "{\"sessionId\":\"1352110219202\",\"status\":0,\"value\":{\"ELEMENT\":\"0\"},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":604376696}"
},
{
"url" : "/wd/hub/session/1352110219202/buttondown",
"postdata" : "{\"button\":0}",
"response" : "{\"sessionId\":\"1352110219202\",\"status\":0,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":604376696}"
},
{
"url" : "/wd/hub/session/1352110219202/window",
"method": "DELETE"
},
{
"url" : "/wd/hub/session/1352110219202/window",
"method": "POST"
},
{
"url" : "/wd/hub/session/1352110219202/buttondown",
"postdata" : "{\"button\":1}",
"response" : "{\"sessionId\":\"1352110219202\",\"status\":0,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":604376696}"
},
{
"url" : "/wd/hub/session/1352110219202/buttonup",
"postdata" : "{\"button\":2}",
"response" : "{\"sessionId\":\"1352110219202\",\"status\":0,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":604376696}"
}
]
}