GNOME Bugzilla – Bug 402353
Remap does not work fine with 2 * wildcard.
Last modified: 2007-02-27 07:28:32 UTC
Step to reproduce: 1. Open gedit, pick the Open... menu-item. 2. ldtp.getobjectinfo('dlg*OpenFile*', 'cboAllFiles*') 3. select 'All Text Files' to change the content of All File combobox. 4. ldtp.getobjectinfo('dlg*OpenFile*', 'cboAllText*') Actual Result: Got error msg: Unable to get the handle of component Expected Result: Do a remap action then returns the valid info for this combox
Object cboAllText (as mentioned in step 4) does not exist in 'Open dialog'. Maybe provide some other steps ? And reopen this bug ?
Step to reproduce: 1. Open gedit, pick the Edit | Preferences ... menu-item. 2. Roll to 'Font & Color' pagetable. 3. ldtp.getobjectinfo('dlggedit*', 'lblMonosapce*') # To get the label of 'Editor Font' button, it return "Monosapce". 4. Change any font name by click above button. 5. --> a. ldtp.getobjectinfo('dlggedit*', 'lblMonosapce*') b. ldtp.getobjectinfo('dlggedit*', 'lblChangedFont') Actual Result: a. # It returned old label b. # Got 'Unable to get component handle' error. Expected Result: Either a or b will take the refracted changing of label for returning.
It seems did not fix! here the process of verification(I'm sure ldtp by was new by your upgrade package:)--> Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 2.6a0 ==== No Subprocess ==== >>> import ldtp >>> ldtp.getobjectproperty('dlggeditPreferences', 'lblNorasi', 'label') 'Norasi' >>> print 'Now I change the font by hand' Now I change the font by hand >>> print 'To get the label now again after changed' To get the label now again after changed >>> ldtp.getobjectproperty('dlggeditPreferences', 'lblMonospace', 'label') Traceback (most recent call last):
+ Trace 109222
ldtp.getobjectproperty('dlggeditPreferences', 'lblMonospace', 'label')
raise LdtpExecutionError (str (msg))
>>> print 'Error? not fixed. okay, try another' Error? not fixed. okay, try another >>> ldtp.getobjectproperty('dlggeditPreferences', 'lblNorasi', 'label') Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> ldtp.getobjectproperty('dlggeditPreferences', 'lblNorasi', 'label') File "/usr/local/lib/python2.6/site-packages/ldtp.py", line 3465, in getobjectproperty raise LdtpExecutionError (str (msg)) LdtpExecutionError: "u'getobjectproperty failed: Unable to get component handle'" >>> print 'uh....' uh....
Very tnx for your fixed.