doc = ui->webView->page()->mainFrame()->documentElement();
QWebElement login = doc.findFirst("input[id=\"login\"]");
QWebElement password = doc.findFirst("input[id=\"password\"]");
QWebElement password_conf = doc.findFirst("input[id=\"password_conf\"]");
QWebElement answer = doc.findFirst("input[id=\"secret_a\"]");
QWebElement recapatcha = doc.findFirst("input[id=\"recaptcha_response_field\"]");
login.setAttribute("value", ui->lineEdit->text());
password.setAttribute("value", ui->lineEdit_2->text());
password_conf.setAttribute("value", ui->lineEdit_2->text());
answer.setAttribute("value", ui->lineEdit_3->text());
recapatcha.setAttribute("value", ui->lineEdit_4->text());
doc = ui->webView->page()->mainFrame()->documentElement();
QWebElement login = doc.findFirst("input[id=\"login\"]");
QWebElement password = doc.findFirst("input[id=\"password\"]");
QWebElement password_conf = doc.findFirst("input[id=\"password_conf\"]");
QWebElement answer = doc.findFirst("input[id=\"secret_a\"]");
QWebElement recapatcha = doc.findFirst("input[id=\"recaptcha_response_field\"]");
login.setAttribute("value", ui->lineEdit->text());
password.setAttribute("value", ui->lineEdit_2->text());
password_conf.setAttribute("value", ui->lineEdit_2->text());
answer.setAttribute("value", ui->lineEdit_3->text());
recapatcha.setAttribute("value", ui->lineEdit_4->text());
To copy to clipboard, switch view to plain text mode
I only fill inputs and I sumbit it by myself in QWebView. It hard to me, explain this what I want to do. But I belive you will understand me ;]
EDIT:
I think that I should use Requests to do it, am I on good way?
Bookmarks