Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 15 lines (11 sloc) 0.457 kB
63366bf @jferris Implemented Node#text; refactored Node commands so that they can be e…
jferris authored
1 #include "Node.h"
2 #include "WebPage.h"
3
85dcc72 @jferris Pass command arguments to the constructor
jferris authored
4 Node::Node(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
63366bf @jferris Implemented Node#text; refactored Node commands so that they can be e…
jferris authored
5 }
6
85dcc72 @jferris Pass command arguments to the constructor
jferris authored
7 void Node::start() {
8 QStringList functionArguments(arguments());
63366bf @jferris Implemented Node#text; refactored Node commands so that they can be e…
jferris authored
9 QString functionName = functionArguments.takeFirst();
10 QVariant result = page()->invokeCapybaraFunction(functionName, functionArguments);
11 QString attributeValue = result.toString();
cc74875 @jferris Created a Response object for the success/message pair
jferris authored
12 emit finished(new Response(true, attributeValue));
63366bf @jferris Implemented Node#text; refactored Node commands so that they can be e…
jferris authored
13 }
14
Something went wrong with that request. Please try again.