-
Bug
-
Resolution: Done
-
P4: Low
-
4.8.4
-
None
-
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.
- resulted in
-
QTBUG-35647 setFont doesn't work for Commit and Finish QWizard buttons when style sheet is set on QWizard
-
- Reported
-