capybara-webkit/src/FrameFocus.h

29 lines
458 B
C
Raw Normal View History

#include "Command.h"
class WebPage;
2011-04-20 23:02:20 +00:00
class QWebFrame;
class FrameFocus : public Command {
Q_OBJECT
public:
FrameFocus(WebPage *page, QStringList &arguments, QObject *parent = 0);
virtual void start();
2011-04-20 23:02:20 +00: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;
};