Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-17029

QWebElement input click()

    XMLWordPrintable

Details

    • 1575462bf90851fb134db4892e93c04b396543f1

    Description

      Greetings Trolls,

      Possibly a glitch about Qt documentation:

      http://doc.qt.nokia.com/4.7-snapshot/qwebelement.html

      ------------------------------------------------------------

      QWebElement document = frame->documentElement();
      /* Assume that the document has the following structure:

      <form name="myform" action="submit_form.asp" method="get">
      <input type="text" name="myfield">
      <input type="submit" value="Submit">
      </form>

      */

      QWebElement button = document.findFirst("input[type=submit]");
      button.evaluateJavaScript("click()");

      ------------------------------------------------------------

      I had to replace "click()" by "this.click()" to make it work on my side.

      Thanks

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cvandonderen Casper van Donderen
            bunjee Benjamin Arnaud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes