How to resize widgets within a web-page

Best practices, code snippets for common functionality, examples, and guidelines.
nataka
Posts: 2
Joined: Mon Feb 16, 2015 3:45 pm

How to resize widgets within a web-page

Post by nataka » Thu Sep 07, 2017 9:13 am

Hi,

I have a web-Application, where you can configure your own user interface by using widgets, which are div-elements. It's similar to the gadgets in Jira. The widgets can be placed everywhere whithin the web-page and the size can be adjusted too.

My question is, is ranorex able place the widget to a specific position and to resize the widgets by pulling its edge with the mouse or perhaps by using something like the invokeAction>resize? Or any possibility with usercode-actions?

Regards

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to resize widgets within a web-page

Post by odklizec » Thu Sep 07, 2017 9:20 am

Hi,

In my opinion, the only thing you can do is to use a combination of Mouse Down, Mouse Move and Mouse Up actions to simulate the mouse click & drag within the AUT. I don't think there is a built-in method for your exact problem. You will just have to code the mouse click & drag according your needs.
Pavel Kudrys
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