GNOME Bugzilla – Bug 668180
Click actions are not working with Qt
Last modified: 2012-01-18 19:50:09 UTC
Created attachment 205522 [details] [review] Fix: case insensitive action name matching Hi, I'm writing a test which should click a button in a Qt dialog (using Qt 4.8.0): ========== window = 'dlgEnteryourusername' assert ldtp.waittillguiexist(window) == 1 log.debug('Window appeared') ldtp.wait(2) ldtp.settextvalue(window, 'txtusername', 'user@example.com') ldtp.click(window, 'btnOK') ========== Everything works fine, except the button click: ========== Traceback (most recent call last):
+ Trace 229475
ldtp.click(window, 'btnOK')
return self.__send(self.__name, args)
verbose=self.__verbose
raise LdtpExecutionError(e.faultString.encode('utf-8'))
========== This is because the button action is called "Press" in Qt. I'm attaching a simple patch which fixes the problem.
Thanks for the bug report and patch, fixed in git head.
Review of attachment 205522 [details] [review]: LGTM