Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.475 kB
#include "Find.h"
#include "Command.h"
#include "WebPage.h"
Find::Find(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
}
void Find::start() {
QString message;
QVariant result = page()->invokeCapybaraFunction("find", arguments());
if (result.isValid()) {
message = result.toString();
emit finished(new Response(true, message));
} else {
emit finished(new Response(false, "Invalid XPath expression"));
}
}
Jump to Line
Something went wrong with that request. Please try again.