hello ,
i am using ranorex to test a print app. i am clicking on the print icon of an image in my app and it opens a new window(which is not my app window) in chrome with the print job. i want to check/validate the printer name displayed in the window and click cancel to go back to the app window. how do i do it? is there any code sample for window handles?
thank you.
Window Handles in Ranorex
Window Handles in Ranorex
You do not have the required permissions to view the files attached to this post.
Re: Window Handles in Ranorex
Hi,
At first, Chrome must be started with this parameter:
Otherwise, Ranorex is unable to explore Chrome's form elements.
Then you can use xpath like this, to track printer's name:
Hope this helps?
At first, Chrome must be started with this parameter:
Code: Select all
--args --force-renderer-accessibility
Then you can use xpath like this, to track printer's name:
Code: Select all
/form[@processname='chrome']/element//element[@accessiblename='Print']/ancestor::element//element[@accessiblerole='None']/element/element/table[@accessiblerole='Table']/row/cell[@visible='true']/text
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Window Handles in Ranorex
thank you sir,
that worked
that worked