mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
28 lines
456 B
C++
28 lines
456 B
C++
#include "Command.h"
|
|
|
|
class WebPage;
|
|
class QWebFrame;
|
|
|
|
class FrameFocus : public Command {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FrameFocus(WebPage *page, QObject *parent = 0);
|
|
virtual void start(QStringList &arguments);
|
|
|
|
private:
|
|
void findFrames();
|
|
|
|
void focusParent();
|
|
|
|
void focusIndex(int index);
|
|
bool isFrameAtIndex(int index);
|
|
|
|
void focusId(QString id);
|
|
|
|
void success();
|
|
void frameNotFound();
|
|
|
|
QList<QWebFrame *> frames;
|
|
};
|
|
|