capybara-webkit 0.14.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.travis.yml +21 -0
- data/Appraisals +4 -4
- data/CONTRIBUTING.md +14 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +27 -19
- data/NEWS.md +15 -0
- data/README.md +126 -76
- data/Vagrantfile +7 -0
- data/capybara-webkit.gemspec +3 -0
- data/gemfiles/2.0.gemfile +7 -0
- data/gemfiles/2.0.gemfile.lock +72 -0
- data/gemfiles/2.1.gemfile +7 -0
- data/gemfiles/2.1.gemfile.lock +71 -0
- data/lib/capybara/webkit/browser.rb +22 -22
- data/lib/capybara/webkit/connection.rb +9 -6
- data/lib/capybara/webkit/driver.rb +22 -6
- data/lib/capybara/webkit/errors.rb +25 -0
- data/lib/capybara/webkit/node.rb +36 -10
- data/lib/capybara/webkit/version.rb +1 -1
- data/spec/browser_spec.rb +16 -1
- data/spec/capybara_webkit_builder_spec.rb +9 -3
- data/spec/connection_spec.rb +19 -3
- data/spec/driver_spec.rb +324 -144
- data/spec/errors_spec.rb +11 -0
- data/spec/integration/session_spec.rb +244 -0
- data/spec/selenium_compatibility_spec.rb +3 -1
- data/spec/spec_helper.rb +1 -9
- data/src/Authenticate.cpp +3 -2
- data/src/ClearCookies.cpp +1 -1
- data/src/ClearPromptText.cpp +1 -1
- data/src/Command.cpp +8 -4
- data/src/Command.h +7 -4
- data/src/CommandFactory.cpp +4 -2
- data/src/CommandParser.cpp +1 -1
- data/src/Connection.cpp +4 -4
- data/src/ConsoleMessages.cpp +1 -1
- data/src/CurrentUrl.cpp +2 -2
- data/src/EnableLogging.cpp +1 -1
- data/src/ErrorMessage.cpp +26 -0
- data/src/ErrorMessage.h +21 -0
- data/src/Evaluate.cpp +1 -1
- data/src/Execute.cpp +3 -2
- data/src/FindCss.cpp +13 -0
- data/src/FindCss.h +11 -0
- data/src/FindXpath.cpp +13 -0
- data/src/FindXpath.h +11 -0
- data/src/FrameFocus.cpp +4 -3
- data/src/GetCookies.cpp +1 -1
- data/src/GetTimeout.cpp +1 -1
- data/src/GetWindowHandle.cpp +1 -1
- data/src/GetWindowHandles.cpp +1 -1
- data/src/Header.cpp +2 -2
- data/src/Headers.cpp +1 -6
- data/src/IgnoreSslErrors.cpp +1 -1
- data/src/InvocationResult.cpp +29 -0
- data/src/InvocationResult.h +16 -0
- data/src/JavascriptAlertMessages.cpp +1 -1
- data/src/JavascriptCommand.cpp +15 -0
- data/src/JavascriptCommand.h +20 -0
- data/src/JavascriptConfirmMessages.cpp +1 -1
- data/src/JavascriptInvocation.cpp +128 -1
- data/src/JavascriptInvocation.h +22 -1
- data/src/JavascriptPromptMessages.cpp +1 -1
- data/src/NetworkAccessManager.cpp +8 -16
- data/src/NetworkAccessManager.h +5 -11
- data/src/NetworkReplyProxy.cpp +91 -0
- data/src/NetworkReplyProxy.h +65 -0
- data/src/Node.cpp +4 -4
- data/src/Node.h +2 -2
- data/src/NullCommand.cpp +2 -1
- data/src/PageLoadingCommand.cpp +2 -1
- data/src/Render.cpp +1 -1
- data/src/Reset.cpp +1 -1
- data/src/ResizeWindow.cpp +1 -1
- data/src/Response.cpp +7 -0
- data/src/Response.h +8 -3
- data/src/SetConfirmAction.cpp +1 -1
- data/src/SetCookie.cpp +2 -2
- data/src/SetPromptAction.cpp +1 -1
- data/src/SetPromptText.cpp +1 -1
- data/src/SetProxy.cpp +2 -2
- data/src/SetSkipImageLoading.cpp +1 -1
- data/src/SetTimeout.cpp +3 -2
- data/src/SetUrlBlacklist.cpp +2 -2
- data/src/Status.cpp +1 -1
- data/src/TimeoutCommand.cpp +4 -2
- data/src/Title.cpp +11 -0
- data/src/Title.h +9 -0
- data/src/Version.cpp +13 -0
- data/src/Version.h +10 -0
- data/src/Visit.cpp +1 -1
- data/src/WebPage.cpp +49 -27
- data/src/WebPage.h +14 -7
- data/src/WebPageManager.cpp +10 -1
- data/src/WebPageManager.h +4 -1
- data/src/WindowFocus.cpp +3 -2
- data/src/body.cpp +3 -6
- data/src/capybara.js +103 -101
- data/src/find_command.h +4 -2
- data/src/main.cpp +1 -1
- data/src/stable.h +39 -0
- data/src/webkit_server.pro +26 -6
- data/vagrant_setup.sh +58 -0
- metadata +51 -78
- data/gemfiles/1.0.gemfile +0 -7
- data/gemfiles/1.0.gemfile.lock +0 -70
- data/gemfiles/1.1.gemfile +0 -7
- data/gemfiles/1.1.gemfile.lock +0 -70
- data/src/Find.cpp +0 -20
- data/src/Find.h +0 -11
data/src/WindowFocus.cpp
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
#include "WebPage.h"
|
4
4
|
#include "CommandFactory.h"
|
5
5
|
#include "WebPageManager.h"
|
6
|
+
#include "ErrorMessage.h"
|
6
7
|
|
7
8
|
WindowFocus::WindowFocus(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
8
9
|
}
|
@@ -12,12 +13,12 @@ void WindowFocus::start() {
|
|
12
13
|
}
|
13
14
|
|
14
15
|
void WindowFocus::windowNotFound() {
|
15
|
-
|
16
|
+
finish(false, new ErrorMessage("Unable to locate window."));
|
16
17
|
}
|
17
18
|
|
18
19
|
void WindowFocus::success(WebPage *page) {
|
19
20
|
page->setFocus();
|
20
|
-
|
21
|
+
finish(true);
|
21
22
|
}
|
22
23
|
|
23
24
|
void WindowFocus::focusWindow(QString selector) {
|
data/src/body.cpp
CHANGED
@@ -6,11 +6,8 @@ Body::Body(WebPageManager *manager, QStringList &arguments, QObject *parent) : S
|
|
6
6
|
}
|
7
7
|
|
8
8
|
void Body::start() {
|
9
|
-
|
10
|
-
|
11
|
-
result = page()->currentFrame()->toPlainText();
|
9
|
+
if (page()->contentType().contains("html"))
|
10
|
+
finish(true, page()->currentFrame()->toHtml());
|
12
11
|
else
|
13
|
-
|
14
|
-
|
15
|
-
emitFinished(true, result);
|
12
|
+
finish(true, page()->body());
|
16
13
|
}
|
data/src/capybara.js
CHANGED
@@ -4,22 +4,30 @@ Capybara = {
|
|
4
4
|
attachedFiles: [],
|
5
5
|
|
6
6
|
invoke: function () {
|
7
|
-
|
7
|
+
try {
|
8
|
+
return this[CapybaraInvocation.functionName].apply(this, CapybaraInvocation.arguments);
|
9
|
+
} catch (e) {
|
10
|
+
CapybaraInvocation.error = e;
|
11
|
+
}
|
12
|
+
},
|
13
|
+
|
14
|
+
findXpath: function (xpath) {
|
15
|
+
return this.findXpathRelativeTo(document, xpath);
|
8
16
|
},
|
9
17
|
|
10
|
-
|
11
|
-
return this.
|
18
|
+
findCss: function (selector) {
|
19
|
+
return this.findCssRelativeTo(document, selector);
|
12
20
|
},
|
13
21
|
|
14
|
-
|
15
|
-
return
|
22
|
+
findXpathWithin: function (index, xpath) {
|
23
|
+
return this.findXpathRelativeTo(this.nodes[index], xpath);
|
16
24
|
},
|
17
25
|
|
18
|
-
|
19
|
-
return this.
|
26
|
+
findCssWithin: function (index, selector) {
|
27
|
+
return this.findCssRelativeTo(this.nodes[index], selector);
|
20
28
|
},
|
21
29
|
|
22
|
-
|
30
|
+
findXpathRelativeTo: function (reference, xpath) {
|
23
31
|
var iterator = document.evaluate(xpath, reference, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
|
24
32
|
var node;
|
25
33
|
var results = [];
|
@@ -31,8 +39,20 @@ Capybara = {
|
|
31
39
|
return results.join(",");
|
32
40
|
},
|
33
41
|
|
42
|
+
findCssRelativeTo: function (reference, selector) {
|
43
|
+
var elements = reference.querySelectorAll(selector);
|
44
|
+
var results = [];
|
45
|
+
for (var i = 0; i < elements.length; i++) {
|
46
|
+
this.nextIndex++;
|
47
|
+
this.nodes[this.nextIndex] = elements[i];
|
48
|
+
results.push(this.nextIndex);
|
49
|
+
}
|
50
|
+
return results.join(",");
|
51
|
+
},
|
52
|
+
|
34
53
|
isAttached: function(index) {
|
35
|
-
return
|
54
|
+
return this.nodes[index] &&
|
55
|
+
document.evaluate("ancestor-or-self::html", this.nodes[index], null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue != null;
|
36
56
|
},
|
37
57
|
|
38
58
|
text: function (index) {
|
@@ -41,10 +61,15 @@ Capybara = {
|
|
41
61
|
if (type == "textarea") {
|
42
62
|
return node.innerHTML;
|
43
63
|
} else {
|
44
|
-
return node.innerText;
|
64
|
+
return node.innerText || node.textContent;
|
45
65
|
}
|
46
66
|
},
|
47
67
|
|
68
|
+
allText: function (index) {
|
69
|
+
var node = this.nodes[index];
|
70
|
+
return node.textContent;
|
71
|
+
},
|
72
|
+
|
48
73
|
attribute: function (index, name) {
|
49
74
|
switch(name) {
|
50
75
|
case 'checked':
|
@@ -108,53 +133,67 @@ Capybara = {
|
|
108
133
|
return this.nodes[index].submit();
|
109
134
|
},
|
110
135
|
|
111
|
-
|
112
|
-
var
|
113
|
-
|
114
|
-
|
136
|
+
clickTest: function(node, pos) {
|
137
|
+
var el = document.elementFromPoint(pos.relativeX, pos.relativeY);
|
138
|
+
|
139
|
+
while (el) {
|
140
|
+
if (el === node)
|
141
|
+
return CapybaraInvocation.clickTest(node, pos.absoluteX, pos.absoluteY);
|
142
|
+
else
|
143
|
+
el = el.parentNode;
|
144
|
+
}
|
145
|
+
|
146
|
+
return false;
|
115
147
|
},
|
116
148
|
|
117
|
-
|
118
|
-
var
|
119
|
-
|
120
|
-
|
149
|
+
clickPosition: function(node) {
|
150
|
+
var rects = node.getClientRects();
|
151
|
+
var rect;
|
152
|
+
|
153
|
+
for (var i = 0; i < rects.length; i++) {
|
154
|
+
rect = rects[i];
|
155
|
+
if (rect.width > 0 && rect.height > 0)
|
156
|
+
return CapybaraInvocation.clickPosition(node, rect.left, rect.top, rect.width, rect.height);
|
157
|
+
}
|
121
158
|
},
|
122
159
|
|
123
|
-
click: function (index) {
|
124
|
-
this.
|
125
|
-
|
126
|
-
|
127
|
-
var
|
128
|
-
|
129
|
-
this.
|
160
|
+
click: function (index, action) {
|
161
|
+
var node = this.nodes[index];
|
162
|
+
node.scrollIntoViewIfNeeded();
|
163
|
+
|
164
|
+
var pos = this.clickPosition(node);
|
165
|
+
|
166
|
+
if (pos && this.clickTest(node, pos))
|
167
|
+
action(pos.absoluteX, pos.absoluteY);
|
168
|
+
else
|
169
|
+
throw new Capybara.ClickFailed(this.path(index), pos);
|
130
170
|
},
|
131
171
|
|
132
|
-
|
133
|
-
|
134
|
-
eventObject.initEvent(eventName, true, true);
|
135
|
-
this.nodes[index].dispatchEvent(eventObject);
|
172
|
+
leftClick: function (index) {
|
173
|
+
this.click(index, CapybaraInvocation.leftClick);
|
136
174
|
},
|
137
175
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
eventObject.metaKey = metaKey;
|
146
|
-
eventObject.keyCode = keyCode;
|
147
|
-
eventObject.charCode = charCode;
|
148
|
-
eventObject.which = keyCode;
|
149
|
-
this.nodes[index].dispatchEvent(eventObject);
|
176
|
+
doubleClick: function(index) {
|
177
|
+
this.click(index, CapybaraInvocation.leftClick);
|
178
|
+
this.click(index, CapybaraInvocation.doubleClick);
|
179
|
+
},
|
180
|
+
|
181
|
+
rightClick: function(index) {
|
182
|
+
this.click(index, CapybaraInvocation.rightClick);
|
150
183
|
},
|
151
184
|
|
152
|
-
|
185
|
+
hover: function (index) {
|
186
|
+
var node = this.nodes[index];
|
187
|
+
node.scrollIntoViewIfNeeded();
|
188
|
+
|
189
|
+
var pos = this.clickPosition(node);
|
190
|
+
if (pos)
|
191
|
+
CapybaraInvocation.hover(pos.absoluteX, pos.absoluteY);
|
192
|
+
},
|
193
|
+
|
194
|
+
trigger: function (index, eventName) {
|
153
195
|
var eventObject = document.createEvent("HTMLEvents");
|
154
196
|
eventObject.initEvent(eventName, true, true);
|
155
|
-
eventObject.keyCode = keyCode;
|
156
|
-
eventObject.which = keyCode;
|
157
|
-
eventObject.charCode = 0;
|
158
197
|
this.nodes[index].dispatchEvent(eventObject);
|
159
198
|
},
|
160
199
|
|
@@ -187,49 +226,6 @@ Capybara = {
|
|
187
226
|
return true;
|
188
227
|
},
|
189
228
|
|
190
|
-
characterToKeyCode: function(character) {
|
191
|
-
var code = character.toUpperCase().charCodeAt(0);
|
192
|
-
var specialKeys = {
|
193
|
-
96: 192, //`
|
194
|
-
45: 189, //-
|
195
|
-
61: 187, //=
|
196
|
-
91: 219, //[
|
197
|
-
93: 221, //]
|
198
|
-
92: 220, //\
|
199
|
-
59: 186, //;
|
200
|
-
39: 222, //'
|
201
|
-
44: 188, //,
|
202
|
-
46: 190, //.
|
203
|
-
47: 191, ///
|
204
|
-
127: 46, //delete
|
205
|
-
126: 192, //~
|
206
|
-
33: 49, //!
|
207
|
-
64: 50, //@
|
208
|
-
35: 51, //#
|
209
|
-
36: 52, //$
|
210
|
-
37: 53, //%
|
211
|
-
94: 54, //^
|
212
|
-
38: 55, //&
|
213
|
-
42: 56, //*
|
214
|
-
40: 57, //(
|
215
|
-
41: 48, //)
|
216
|
-
95: 189, //_
|
217
|
-
43: 187, //+
|
218
|
-
123: 219, //{
|
219
|
-
125: 221, //}
|
220
|
-
124: 220, //|
|
221
|
-
58: 186, //:
|
222
|
-
34: 222, //"
|
223
|
-
60: 188, //<
|
224
|
-
62: 190, //>
|
225
|
-
63: 191 //?
|
226
|
-
};
|
227
|
-
if (specialKeys[code]) {
|
228
|
-
code = specialKeys[code];
|
229
|
-
}
|
230
|
-
return code;
|
231
|
-
},
|
232
|
-
|
233
229
|
set: function (index, value) {
|
234
230
|
var length, maxLength, node, strindex, textTypes, type;
|
235
231
|
|
@@ -247,25 +243,21 @@ Capybara = {
|
|
247
243
|
length = value.length;
|
248
244
|
}
|
249
245
|
|
250
|
-
node.
|
246
|
+
if (!node.readOnly)
|
247
|
+
node.value = "";
|
248
|
+
|
251
249
|
for (strindex = 0; strindex < length; strindex++) {
|
252
|
-
|
253
|
-
var keyCode = this.characterToKeyCode(value[strindex]);
|
254
|
-
this.keyupdown(index, "keydown", keyCode);
|
255
|
-
this.keypress(index, false, false, false, false, value.charCodeAt(strindex), value.charCodeAt(strindex));
|
256
|
-
this.keyupdown(index, "keyup", keyCode);
|
257
|
-
this.trigger(index, "input");
|
250
|
+
CapybaraInvocation.keypress(value[strindex]);
|
258
251
|
}
|
259
|
-
this.trigger(index, "change");
|
260
252
|
|
261
253
|
} else if (type === "checkbox" || type === "radio") {
|
262
254
|
if (node.checked != (value === "true")) {
|
263
|
-
this.
|
255
|
+
this.leftClick(index);
|
264
256
|
}
|
265
257
|
|
266
258
|
} else if (type === "file") {
|
267
259
|
this.attachedFiles = Array.prototype.slice.call(arguments, 1);
|
268
|
-
this.
|
260
|
+
this.leftClick(index);
|
269
261
|
|
270
262
|
} else {
|
271
263
|
node.value = value;
|
@@ -286,7 +278,7 @@ Capybara = {
|
|
286
278
|
this.trigger(index, "change");
|
287
279
|
},
|
288
280
|
|
289
|
-
|
281
|
+
centerPosition: function(element) {
|
290
282
|
this.reflow(element);
|
291
283
|
var rect = element.getBoundingClientRect();
|
292
284
|
var position = {
|
@@ -320,7 +312,7 @@ Capybara = {
|
|
320
312
|
|
321
313
|
dragTo: function (index, targetIndex) {
|
322
314
|
var element = this.nodes[index], target = this.nodes[targetIndex];
|
323
|
-
var position = this.
|
315
|
+
var position = this.centerPosition(element);
|
324
316
|
var options = {
|
325
317
|
clientX: position.x,
|
326
318
|
clientY: position.y
|
@@ -335,7 +327,7 @@ Capybara = {
|
|
335
327
|
options.clientY += 1;
|
336
328
|
mouseTrigger('mousemove', options);
|
337
329
|
|
338
|
-
position = this.
|
330
|
+
position = this.centerPosition(target);
|
339
331
|
options = {
|
340
332
|
clientX: position.x,
|
341
333
|
clientY: position.y
|
@@ -349,3 +341,13 @@ Capybara = {
|
|
349
341
|
}
|
350
342
|
};
|
351
343
|
|
344
|
+
Capybara.ClickFailed = function(path, position) {
|
345
|
+
this.name = 'Capybara.ClickFailed';
|
346
|
+
this.message = 'Failed to click element ' + path;
|
347
|
+
if (position)
|
348
|
+
this.message += ' at position ' + position["absoluteX"] + ', ' + position["absoluteY"];
|
349
|
+
else
|
350
|
+
this.message += ' at unknown position';
|
351
|
+
};
|
352
|
+
Capybara.ClickFailed.prototype = new Error();
|
353
|
+
Capybara.ClickFailed.prototype.constructor = Capybara.ClickFailed;
|
data/src/find_command.h
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
}
|
5
5
|
|
6
6
|
CHECK_COMMAND(Visit)
|
7
|
-
CHECK_COMMAND(
|
7
|
+
CHECK_COMMAND(FindXpath)
|
8
8
|
CHECK_COMMAND(Reset)
|
9
9
|
CHECK_COMMAND(Node)
|
10
10
|
CHECK_COMMAND(Evaluate)
|
@@ -39,4 +39,6 @@ CHECK_COMMAND(JavascriptPromptMessages)
|
|
39
39
|
CHECK_COMMAND(GetTimeout)
|
40
40
|
CHECK_COMMAND(SetTimeout)
|
41
41
|
CHECK_COMMAND(SetUrlBlacklist)
|
42
|
-
|
42
|
+
CHECK_COMMAND(Title)
|
43
|
+
CHECK_COMMAND(Version)
|
44
|
+
CHECK_COMMAND(FindCss)
|
data/src/main.cpp
CHANGED
data/src/stable.h
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
#include <QApplication>
|
2
|
+
#include <QByteArray>
|
3
|
+
#include <QDebug>
|
4
|
+
#include <QEvent>
|
5
|
+
#include <QFile>
|
6
|
+
#include <QIODevice>
|
7
|
+
#include <QList>
|
8
|
+
#include <QNetworkCookie>
|
9
|
+
#include <QNetworkProxy>
|
10
|
+
#include <QNetworkReply>
|
11
|
+
#include <QNetworkRequest>
|
12
|
+
#include <QObject>
|
13
|
+
#include <QResource>
|
14
|
+
#include <QSet>
|
15
|
+
#include <QString>
|
16
|
+
#include <QStringList>
|
17
|
+
#include <QTcpServer>
|
18
|
+
#include <QTcpSocket>
|
19
|
+
#include <QTimer>
|
20
|
+
#include <QUuid>
|
21
|
+
#include <QVariant>
|
22
|
+
#include <QVariantList>
|
23
|
+
#include <QWebElement>
|
24
|
+
#include <QWebSettings>
|
25
|
+
#include <QtNetwork/QNetworkAccessManager>
|
26
|
+
#include <QtNetwork/QNetworkCookie>
|
27
|
+
#include <QtNetwork/QNetworkCookieJar>
|
28
|
+
#include <QtNetwork/QNetworkReply>
|
29
|
+
#include <QtNetwork/QNetworkRequest>
|
30
|
+
#include <QtNetwork>
|
31
|
+
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
32
|
+
#include <QtWebKitWidgets>
|
33
|
+
#else
|
34
|
+
#include <QtWebKit>
|
35
|
+
#endif
|
36
|
+
#include <cmath>
|
37
|
+
#include <fstream>
|
38
|
+
#include <iostream>
|
39
|
+
#include <sstream>
|
data/src/webkit_server.pro
CHANGED
@@ -2,6 +2,7 @@ TEMPLATE = app
|
|
2
2
|
TARGET = webkit_server
|
3
3
|
DESTDIR = .
|
4
4
|
HEADERS = \
|
5
|
+
Version.h \
|
5
6
|
EnableLogging.h \
|
6
7
|
Authenticate.h \
|
7
8
|
SetConfirmAction.h \
|
@@ -21,7 +22,6 @@ HEADERS = \
|
|
21
22
|
Command.h \
|
22
23
|
SocketCommand.h \
|
23
24
|
Visit.h \
|
24
|
-
Find.h \
|
25
25
|
Reset.h \
|
26
26
|
Node.h \
|
27
27
|
JavascriptInvocation.h \
|
@@ -55,9 +55,17 @@ HEADERS = \
|
|
55
55
|
TimeoutCommand.h \
|
56
56
|
SetUrlBlacklist.h \
|
57
57
|
NoOpReply.h \
|
58
|
-
JsonSerializer.h
|
58
|
+
JsonSerializer.h \
|
59
|
+
InvocationResult.h \
|
60
|
+
ErrorMessage.h \
|
61
|
+
Title.h \
|
62
|
+
FindCss.h \
|
63
|
+
JavascriptCommand.h \
|
64
|
+
FindXpath.h \
|
65
|
+
NetworkReplyProxy.h
|
59
66
|
|
60
67
|
SOURCES = \
|
68
|
+
Version.cpp \
|
61
69
|
EnableLogging.cpp \
|
62
70
|
Authenticate.cpp \
|
63
71
|
SetConfirmAction.cpp \
|
@@ -78,7 +86,6 @@ SOURCES = \
|
|
78
86
|
Command.cpp \
|
79
87
|
SocketCommand.cpp \
|
80
88
|
Visit.cpp \
|
81
|
-
Find.cpp \
|
82
89
|
Reset.cpp \
|
83
90
|
Node.cpp \
|
84
91
|
JavascriptInvocation.cpp \
|
@@ -112,10 +119,23 @@ SOURCES = \
|
|
112
119
|
TimeoutCommand.cpp \
|
113
120
|
SetUrlBlacklist.cpp \
|
114
121
|
NoOpReply.cpp \
|
115
|
-
JsonSerializer.cpp
|
122
|
+
JsonSerializer.cpp \
|
123
|
+
InvocationResult.cpp \
|
124
|
+
ErrorMessage.cpp \
|
125
|
+
Title.cpp \
|
126
|
+
FindCss.cpp \
|
127
|
+
JavascriptCommand.cpp \
|
128
|
+
FindXpath.cpp \
|
129
|
+
NetworkReplyProxy.cpp
|
116
130
|
|
117
131
|
RESOURCES = webkit_server.qrc
|
118
|
-
QT += network
|
119
|
-
|
132
|
+
QT += network
|
133
|
+
greaterThan(QT_MAJOR_VERSION, 4) {
|
134
|
+
QT += webkitwidgets
|
135
|
+
} else {
|
136
|
+
QT += webkit
|
137
|
+
}
|
138
|
+
CONFIG += console precompile_header
|
120
139
|
CONFIG -= app_bundle
|
140
|
+
PRECOMPILED_HEADER = stable.h
|
121
141
|
|