-
Notifications
You must be signed in to change notification settings - Fork 4
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
Commands does not return while interacting with Acrobat Reader elements #9
Comments
Do you have any UI Automation inspection tools (like Inspect or UIAutomation Verify? The first step in troubleshooting that I normally do is to open up one of those applications to inspect what the elements within the application are exposing. If you can see what you're trying to get to in that tree, then you want to see what kind of interfaces the element says that it exposes. From there it's easier to determine how you'll be able to interact. Can you find the element you're trying to interact with in one of those tools and let me know what kind of information it says about it? |
Thanks for your valuable reply. Yes I am using UISpy tool to inspect elements and below is the properties of the element with which I am trying to interact. Here class name of the elements is NULL is it the problem. Window Properties: Any command trying to interact with above elements does not return. When it comes to RAutomation, ar.menu(name => "Files").exists? - returns true |
RAutomationThis is probably a bit trangential, but there are a handful of open RAutomation issues (jarmo/RAutomation#73, jarmo/RAutomation#79, jarmo/RAutomation#97) that likely will require swapping out the underlying RAutomation This gem was sort of birthed out of my experience with RAutomation. That being said, moving forward I think that this gem is best to work with to have a consistent API. I also have a page-object wrapper gem called mohawk that actually uses the Your IssueThe reason I mention this is because I see you're dumping out what RAutomation reports; could you maybe try using the mohawk gem to see what it does? When you I mention all of this because mohawk, when working with menu items, tries to be fancier in how it selects a menu path. Rather than doing mouse-clicks, it tries to use the TL;DR;You might try one of the above approaches; likely mouse-clicking is not going to work for you. I mention mohawk because it is a little cleaner in defining how you access menus. |
Thanks. Sure will try mohawk and update. Cannot use RAutomation for specified application even if it recognise the elements but when clicking on any element like menu, button hangs the command without returning. |
When I execute below script, require 'mohawk' Mohawk.default_adapter = Mohawk::Adapters::UiaAdapter class ARWindow menu_item(:menu_item_by_path, path: ['File']) main = ARWindow.new main.exist? - returns "true" Hope the script is correct as I am new to Ruby :) And please can you guide on how to overcome this issue. Whatever action I try to perform on any element using any gems(RAutomation, uia, mohawk) the command hangs :( Thank you for all the support. |
Are you automating Adobe Acrobat? Which version and what are you trying to On Fri, Jan 15, 2016 at 3:01 PM Pramanth [email protected] wrote:
|
Trying on Adobe Reader 11. Our application has few elements registered in the menu option and disable few options in sidebar like attachments based on policy. We even support Adobe Acrobat 11,DC etc. which I have not tried automating. I can do few validation with send_keys but nice to have control on elements. |
Is it possible that the Adobe Reader is running in an elevated session and On Fri, Jan 15, 2016 at 3:15 PM Pramanth [email protected] wrote:
|
I have logged in as Administrator in the windows host. Even tried once again but no success. Actually our application has components registered in explorer, outlook, word and able to interact with most of the elements in these applications with the gems but the gems only fail in Acrobat Reader. |
Thank you for developing this wrapper which is simple and easy to use :)
Since our application has few elements integrated with Acrobat Reader was trying to automate the same using "uia"(v 0.6) but after executing the commands nothing gets returned and execution hangs. Please is it possible to provide some pointers to resolve the issue.
ar = Uia.find_element title: /Adobe Reader/i
ar.find(:name => "Attachments").click
Was able to interact with Acrobat Reader menus using "send_keys".
Even tried the other wrapper "RAutomation" where you have contributed but same issue identified.
The text was updated successfully, but these errors were encountered: