mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
13 lines
409 B
C++
13 lines
409 B
C++
#include "RequestedUrl.h"
|
|
#include "WebPage.h"
|
|
#include "WebPageManager.h"
|
|
|
|
RequestedUrl::RequestedUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
|
}
|
|
|
|
void RequestedUrl::start() {
|
|
QUrl humanUrl = page()->currentFrame()->requestedUrl();
|
|
QByteArray encodedBytes = humanUrl.toEncoded();
|
|
emit finished(new Response(true, encodedBytes));
|
|
}
|
|
|