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

QWizard buttons don't have the objectName property set

XMLWordPrintable

    • 1ea191276ea49ce2334d21b1f4a2c66ee8889466

      I'm trying to automate some user tests with Autopilot, that uses the qt testability on the back.
      If the UI components have an objectName, it's easy to find them. For example, I would do:
      finish_button = self.application.select_single(
      'QPushButton', objectName='finish_button')

      The object name is not likely to change, so the tests will remain stable.

      However, the buttons in the QWizard have no objectName set, so I have to select them by text:
      finish_button = self.application.select_single(
      'QPushButton', text='&Finish')

      This will not work in other languages, and it's more likely it will change in the future breaking the tests.
      So, it would be better if the QWizard sets the objectNames for all the buttons.

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

            mmutz Marc Mutz
            elopio Leo Arias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes