thoughtbot/capybara-webkit

View on GitHub
src/AcceptAlert.cpp

Summary

Maintainability
Test Coverage
#include "AcceptAlert.h"
#include "SocketCommand.h"
#include "WebPage.h"
#include "WebPageManager.h"

AcceptAlert::AcceptAlert(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}

void AcceptAlert::start() {
  finish(true, page()->acceptAlert(arguments()[0]));
}