#ifndef JHW_PAGE #define JHW_PAGE #include #include namespace HeadlessSpecRunner { class Page: public QWebPage { Q_OBJECT public: Page(); void oneFalseConfirm(); signals: void consoleLog(const QString &msg, int lineNumber, const QString &sourceID); void internalLog(const QString ¬e, const QString &msg); protected: void javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID); bool javaScriptConfirm(QWebFrame *frame, const QString &msg); void javaScriptAlert(QWebFrame *frame, const QString &msg); private: bool confirmResult; }; } #endif