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

16 lines
402 B
C++
Raw Normal View History

2011-02-18 22:53:06 -05:00
#include "Reset.h"
#include "WebPage.h"
Reset::Reset(WebPage *page, QObject *parent) : Command(page, parent) {
}
void Reset::start(QStringList &arguments) {
Q_UNUSED(arguments);
2011-02-18 22:53:06 -05:00
page()->triggerAction(QWebPage::Stop);
page()->currentFrame()->setHtml("<html><body></body></html>");
page()->networkAccessManager()->setCookieJar(new QNetworkCookieJar());
emit finished(new Response(true));
2011-02-18 22:53:06 -05:00
}