1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/src/Source.cpp

14 lines
287 B
C++
Raw Normal View History

2011-02-25 18:04:23 -05:00
#include "Source.h"
#include "WebPage.h"
Source::Source(WebPage *page, QObject *parent) : Command(page, parent) {
}
void Source::start(QStringList &arguments) {
Q_UNUSED(arguments)
QString result = page()->currentFrame()->toHtml();
emit finished(new Response(true, result));
2011-02-25 18:04:23 -05:00
}