cancel
Showing results for 
Search instead for 
Did you mean: 

Resize a pane

SunHung1
Level 4

The resize option is only available in Win32 spying mode but my left pane can only be spied in browser mode or UI mode.

34950.jpg
34951.jpg
3 REPLIES 3

JohnCowell
Staff
Staff

Is there a requirement to resize those elements that can only be spied in browser mode or UIA mode? For example, does the application require the pane need to be resized for Blue Prism to identify it and work with it in a running process? If you manually resize a pane and can spy the elements during object modeller design stage then they may work without during a process run without having to re-size the pane.
Does the pane have any minimize or maximise buttons for it that you could make use of?
An alternative you may want to explore is whether the application element responds to keyboard input for re-sizing using Global Send Keys/Key Events. For example :- Press Alt+Space to bring up the window menu, press S to choose the Size option, use the arrow keys to resize the window, and lastly Enter to confirm.

John Cowell Senior Software Support Analyst Blue Prism

SunHung1
Level 4
Hi John,

Thanks a lot for your answer. 
The elements have to be re-sized because the folder tree cannot be fully displayed otherwise. 

Let me provide more details, it is a web application running on Edge and we have to resize the pane highlighted in red.
Pressing Alt+Space will re-size the whole Edge window but not the pane inside so it does not work. 

34949.jpg

JohnCowell
Staff
Staff
You could use Region Mode to spy part of the pane and then make use of 'Start Drag' and 'Drop Onto' actions. Start Drag will click and drag from the centre of the identified region and you will need another region to tell Blue Prism where to drop onto. This could be a coordinates region with the initial region as the relative parent.

You could also try using Drag and Drop with the X and Y coordinates of the Window.

One other thought is to investigate what the automation needs to do with the elements in this pane. If it is just retrieving some data from the node elements try some of the actions for a Read stage to extract this data by spying the visible parent node and see if this offers anything useful. If there is a definite requirement to perform point and click  operations like a human user would then combining the first option(s) mentioned above with UIA and/or browser mode would probably be better.
John Cowell Senior Software Support Analyst Blue Prism