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

29 lines
456 B
C
Raw Normal View History

#include "Command.h"
class WebPage;
2011-04-20 19:02:20 -04:00
class QWebFrame;
class FrameFocus : public Command {
Q_OBJECT
public:
FrameFocus(WebPage *page, QObject *parent = 0);
virtual void start(QStringList &arguments);
2011-04-20 19:02:20 -04:00
private:
void findFrames();
void focusParent();
void focusIndex(int index);
bool isFrameAtIndex(int index);
void focusId(QString id);
void success();
void frameNotFound();
QList<QWebFrame *> frames;
};