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

Attribute Unsupported error on some apps while finding element #18

Open
Pramanth opened this issue Dec 28, 2016 · 0 comments
Open

Attribute Unsupported error on some apps while finding element #18

Pramanth opened this issue Dec 28, 2016 · 0 comments

Comments

@Pramanth
Copy link

Getting below error while searching for an element which do not exist on few of the application like MS Office word 2011. In other application returns nil when element is not found.

What may be the cause and any pointers for solution?

w = AX::Application.new 'com.microsoft.Word'
w.search(:static_text, value:'Save A:')
ArgumentError: attribute unsupported
from /Library/Ruby/Gems/2.0.0/gems/AXElements-7.0.1/lib/ax/element.rb:77:in children' from /Library/Ruby/Gems/2.0.0/gems/AXElements-7.0.1/lib/ax/element.rb:77:in children'
from /Library/Ruby/Gems/2.0.0/gems/AXElements-7.0.1/lib/accessibility/enumerators.rb:24:in each' from /Library/Ruby/Gems/2.0.0/gems/AXElements-7.0.1/lib/accessibility/enumerators.rb:43:in find'
from /Library/Ruby/Gems/2.0.0/gems/AXElements-7.0.1/lib/ax/element.rb:271:in search' from (irb):95 from /usr/bin/irb:12:in

image

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

1 participant