Преглед изворни кода

Add windows mocks for action chains

[skip ci]
Daniel Gempesaw пре 10 година
родитељ
комит
cb3c13ce9a
1 измењених фајлова са 46 додато и 0 уклоњено
  1. 46 0
      t/mock-recordings/11-action-chains-mock-MSWin32.json

+ 46 - 0
t/mock-recordings/11-action-chains-mock-MSWin32.json

@@ -0,0 +1,46 @@
+{
+   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"javascriptEnabled\":false,\"platform\":\"ANY\",\"version\":null}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:30 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 581\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:40 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":1004900685,\"value\":{\"applicationCacheEnabled\":true,\"rotatable\":false,\"handlesAlerts\":true,\"databaseEnabled\":true,\"version\":\"27.0.1\",\"platform\":\"WINDOWS\",\"browserConnectionEnabled\":true,\"nativeEvents\":false,\"acceptSslCerts\":true,\"webdriver.remote.sessionid\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"webStorageEnabled\":true,\"locationContextEnabled\":true,\"browserName\":\"firefox\",\"takesScreenshot\":true,\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:42 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 580\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:45 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":284820248,\"value\":{\"applicationCacheEnabled\":true,\"rotatable\":false,\"handlesAlerts\":true,\"databaseEnabled\":true,\"version\":\"27.0.1\",\"platform\":\"WINDOWS\",\"browserConnectionEnabled\":true,\"nativeEvents\":false,\"acceptSslCerts\":true,\"webdriver.remote.sessionid\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"webStorageEnabled\":true,\"locationContextEnabled\":true,\"browserName\":\"firefox\",\"takesScreenshot\":true,\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/10f77902-a32f-4438-950d-29f64f0b9d0f/elements {\"using\":\"xpath\",\"value\":\"//*[@class='hdtb-mitem']\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:41 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 156\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:42 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":826539780,\"value\":[],\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "GET session/afba4697-fecf-4405-b7e6-094b50b6817b/element/1/displayed {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:48 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 157\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":65530616,\"value\":true,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/afba4697-fecf-4405-b7e6-094b50b6817b/moveto {\"element\":\"0\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:48 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":1650602365,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/10f77902-a32f-4438-950d-29f64f0b9d0f/element {\"using\":\"xpath\",\"value\":\"//input[@type='text']\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:41 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 170\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:41 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":2036970995,\"value\":{\"ELEMENT\":\"0\"},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "DELETE session/10f77902-a32f-4438-950d-29f64f0b9d0f {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:42 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:42 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":1361847628,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/afba4697-fecf-4405-b7e6-094b50b6817b/element {\"using\":\"xpath\",\"value\":\"//*[contains(text(),'right click me')]\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:48 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 170\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":1735026461,\"value\":{\"ELEMENT\":\"0\"},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "DELETE session/afba4697-fecf-4405-b7e6-094b50b6817b {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:48 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":1701199990,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/afba4697-fecf-4405-b7e6-094b50b6817b/click {\"button\":2}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:48 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":337250944,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/10f77902-a32f-4438-950d-29f64f0b9d0f/url {\"url\":\"https://www.google.com\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:40 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:41 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":1079278796,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/afba4697-fecf-4405-b7e6-094b50b6817b/element {\"using\":\"xpath\",\"value\":\"//*[text()='Paste']\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:48 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 169\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":920587161,\"value\":{\"ELEMENT\":\"1\"},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/10f77902-a32f-4438-950d-29f64f0b9d0f/element/0/value {\"value\":[\"test\"]}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:41 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:41 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":1072790976,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/afba4697-fecf-4405-b7e6-094b50b6817b/url {\"url\":\"http://medialize.github.io/jQuery-contextMenu/demo.html\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:45 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:48 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"afba4697-fecf-4405-b7e6-094b50b6817b\",\"hCode\":550257166,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/10f77902-a32f-4438-950d-29f64f0b9d0f/keys {\"value\":[\"\"]}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:41 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:41 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":1917995955,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 17 May 2015 00:19:41 GMT\nServer: Jetty/5.1.x (Windows 7/6.1 amd64 java/1.8.0_31\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 17 May 2015 00:19:41 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"10f77902-a32f-4438-950d-29f64f0b9d0f\",\"hCode\":317953629,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ]
+}