The QWebElement class, part of the Qt framework, provides convenient access to DOM elements in a QWebFrame.
Questions tagged [qwebelement]
61 questions
7
votes
1 answer
How to fire user-like event in QWebElement
Is it real to fire user-like events (like mouse click on link) for QWebElement?
I.e., for instance, given QWebElement from current frame (using QWebKit) for html tag ("") I want programmatically click() this element.
In more complicated…

Jamon
- 126
- 6
6
votes
3 answers
How to follow a link in QWebKit?

Piotr Dobrogost
- 41,292
- 40
- 236
- 366
5
votes
1 answer
SpellChecker (speller) on webkit
I believe that there is no native functions in QtWebKit to use SpellChecker.
Is there any way to get the fields (

Protomen
- 9,471
- 9
- 57
- 124
4
votes
2 answers
QtWebkit and QWebElement - Get user input?
how can i get the userinput in an input-field?
QObject::connect( webView, SIGNAL(loadStarted()), this, SLOT(slotLoadStarted()) );
void slotLoadStarted()
{
QWebFrame *frame = webView->page()->currentFrame();
if (frame!=NULL)
{
…

Kenni
- 41
- 2
4
votes
1 answer
How to set value of input(type="file") with QWebElement?
I'm trying to upload a photo to vk.com using QtWebKit module. The problem I'm facing is inability to properly fill input(type="file")'s value. Here's some related code I use:
def upload():
print 'uploading...'
photoInput =…

Aleksei Zabrodskii
- 2,220
- 3
- 19
- 41
3
votes
2 answers
LIbrary issue: How do I set up QtWebKit to parse HTML?
Nick Presta showed that you can parse HTML with qt here: https://stackoverflow.com/questions/489522/library-recommendation-c-html-parser
However, when I attempt to build this, I get an access violation on the "QWebFrame* frame = page.mainFrame();"…

Britney A
- 71
- 2
- 4
2
votes
0 answers
Python Webelement to .text selenium
I use Selenium,
I would like to know how to retrieve the two values result.name and result.prix under value 'text' and be able to save in text format I find myself with the code below with two webelement value which is displayed only on my console…

Victor Mirault
- 17
- 4
2
votes
1 answer
How to locate a prompt message of type in-context using selenium and Java?
Please refer the below screenshot for the same :

Techrin
- 21
- 1
2
votes
3 answers
Selecting Different Web Elements
I am a Software Quality Assurance Engineer and I am trying to create an Automated test for a webpage.
Some background:
The framework of Selenium that my company uses ONLY allows you to use X paths saved as an object then you use pre-existing methods…

Stewart Moon
- 291
- 3
- 10
2
votes
2 answers
Encoding a QString in JSON
I'm trying to encode a QString into a JSON string, so that I can inject it safely via QWebFrame::evaluateJavaScript(QString("o.text = %1;").arg(???)).
For example, in php using the function json_encode
echo json_encode('HELLO "me"');
The output…

TesX
- 931
- 1
- 9
- 29
2
votes
1 answer
Qt: How can I receive events fired by QWebElement objects?
I want to receive notifications whenever links are clicked or text fields are changed in a Webkit instance in Qt. How can I hook up event listeners to a QWebElement?
I know I can put some Javascript on each element’s onchange / onclick handler,…

Tony the Pony
- 40,327
- 71
- 187
- 281
2
votes
2 answers
Qt read data from website
what library do I have to use to get data from website.
For example I have such a case:
And how do I get the name of the second…

piess105
- 93
- 1
- 1
- 5
2
votes
1 answer
QWebElement manipulation of a QWebPage in a separate thread
I have a QWebPage created in the main thread (you can't create it anywhere else). I would like to manipulate this page using the QWebElement API introduced in Qt 4.6, but in a separate thread. So that thread would acquire a reference to the page and…

Lucas
- 6,328
- 8
- 37
- 49
2
votes
2 answers
Parsing HTML using QWebElement, how to extract an image?
I struggle to use QWebElement. As an exercise, I would like to capture the "Google" logo from page http://www.google.com. The image is in
, but I don't know how to extract it. How shall I use the "doc" QWebElement in the…

Olivier
- 393
- 3
- 11
2
votes
1 answer
Qt Image From Web
I'd like PyQt to load an image and display it from the web. Dozens of examples I've found online did not work, as they are for downloading the image.
I simply want to view it.
Something like
from PyQt4.QtWebKit import *
web =…

crackerbunny
- 139
- 4
- 12