Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using <space> tag throws exception, but adding some other tag in front works fine #73

Open
nagappan opened this issue Feb 28, 2014 · 2 comments

Comments

@nagappan
Copy link
Member

l.generatekeyevent('')
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.9-intel/egg/atomac/ldtp/client.py", line 80, in call
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "build/bdist.macosx-10.9-intel/egg/atomac/ldtp/client.py", line 204, in request
xmlrpclib.Fault: <Fault 1: "<type 'exceptions.AttributeError'>:Object <atomac.AXClasses.NativeUIElement AXWindow u'vtaf \u2014 root@v...'> has no attribute eventList">
l.generatekeyevent('a') # This works
1

Traceback (most recent call last):
File "build/bdist.macosx-10.9-intel/egg/atomac/ldtpd/utils.py", line 180, in _dispatch
return getattr(self, method)(*args)
File "build/bdist.macosx-10.9-intel/egg/atomac/ldtpd/text.py", line 44, in generatekeyevent
key_combo_action = KeyComboAction(window, data)
File "build/bdist.macosx-10.9-intel/egg/atomac/ldtpd/keypress_actions.py", line 147, in init
self._doCombo()
File "build/bdist.macosx-10.9-intel/egg/atomac/ldtpd/keypress_actions.py", line 154, in _doCombo
self._window.sendKey(key_val.value)
File "build/bdist.macosx-10.9-intel/egg/atomac/AXClasses.py", line 849, in sendKey
return self._sendKey(keychr)
File "build/bdist.macosx-10.9-intel/egg/atomac/AXClasses.py", line 279, in _sendKey
self._postQueuedEvents()
File "build/bdist.macosx-10.9-intel/egg/atomac/AXClasses.py", line 189, in _postQueuedEvents
while (len(self.eventList) > 0):
File "build/bdist.macosx-10.9-intel/egg/atomac/AXClasses.py", line 726, in getattr
raise AttributeError('Object %s has no attribute %s' % (self, name))
AttributeError: Object <atomac.AXClasses.NativeUIElement AXWindow u'vtaf \u2014 root@v...'> has no attribute eventList

@nagappan
Copy link
Member Author

wow ! tag is missing inside the code in bug report !!!

in both the function call (generatekeyevent)

@F1ashhimself
Copy link

The same for <esc> tag and possible some other.
Adding <shift> tag will hide this error but anyway esc will be not pressed.

Also tag is missing inside the code report because github thinks that this is html tag, try to wrap it with ```

mpichlin added a commit to mpichlin/pyatom that referenced this issue Jul 28, 2014
mpichlin added a commit to mpichlin/pyatom that referenced this issue Jul 28, 2014
nagappan added a commit that referenced this issue Jul 29, 2014
Issue #73: Added '<space>' and '<esc>' support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants