Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Is there a way to QWebElement->findFirstElement() when the element is hidden?



  • Hi,

    There is a polish page with instant messenger "gadu gadu". Here is the link:

    https://www.gg.pl/

    On this website there is a button "Zaloguj się" (sign in).

    gg1.png

    I can using QWebElement to click on this button. When I do that there is a popup window, where I can write my login and password.

    gg2.png

    I would like to fill this text lines ( password (hasło ) and login ( numer gg email lub telefon ) using QWebDocument.

    Of course I find in html what I need to:

    gg3.png

    But the problem is that - I can see that html text with input only when the popup is shown. When there is no popup with password and login and when I try to find that id="password" I can't find any ( I try CTRL+SHIFT+ I on the website ). I think that findFirstElement() works only on the initial page with no popup shown.

    Is there a way to get this input?


Log in to reply