Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.692 kB
#include "Node.h"
#include "WebPage.h"
#include "WebPageManager.h"
#include "InvocationResult.h"
Node::Node(WebPageManager *manager, QStringList &arguments, QObject *parent) : JavascriptCommand(manager, arguments, parent) {
}
void Node::start() {
QStringList functionArguments(arguments());
QString functionName = functionArguments.takeFirst();
QString allowUnattached = functionArguments.takeFirst();
InvocationResult result = page()->invokeCapybaraFunction(functionName, allowUnattached == "true", functionArguments);
finish(&result);
}
QString Node::toString() const {
QStringList functionArguments(arguments());
return QString("Node.") + functionArguments.takeFirst();
}
Jump to Line
Something went wrong with that request. Please try again.