Behaviour of Vertical Scrollbar

Ask general questions here.
SourishHalder
Posts: 5
Joined: Thu Jun 20, 2013 5:05 am

Behaviour of Vertical Scrollbar

Post by SourishHalder » Thu Jun 20, 2013 5:21 am

Hello

I use Ranorex 4.0.2.21666 to automate testing for Wpf application.
But we are facing problems while trying to use Vertical Scrollbars or control their movement. When we check the spy , we can see another dummy vertical scrollbar with the same positioning being created within the same roup panel and also we are not able to manually control the field value for the Vertical Scrollbar either via user code or using the SetValue action. The reason for us to control the movement of the scrollbar is we want in our playback of the testing for the mouse action to hit the exact location on the group panel and since we are not able to control the value of the position of the scrollbar the scrollbar keeps getting reset to the original starting position in the group panel.

Version of Ranorex used - 4.0.2.21666
OS - Windows 7 32 bit
Attachments - Screenshot of the vertical scrollbar
Snapshot can be provided on request

Regards,
Sourish Halder
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Behaviour of Vertical Scrollbar

Post by Support Team » Wed Jun 26, 2013 4:09 pm

Hello Sourish,

In general, you should be able to use 'Set Value' for the 'VerticalScrollBar'.
Is it implemented as a 'ScrollViewer' control?

Could you please post or send us ([email protected]) a Ranorex Snapshot of your application in order to analyze this issue? Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Thank you in advance.

Regards,
Markus (T)

SourishHalder
Posts: 5
Joined: Thu Jun 20, 2013 5:05 am

Re: Behaviour of Vertical Scrollbar

Post by SourishHalder » Thu Jun 27, 2013 5:24 am

Hello Markus ,

It is implemented as a ScrollViewer Control. And we tried using SetValue action to set the value , but it was not working. I even tried to set the value from the user code perspective but that too did not have any effect.
Kindly do let me know if you need the snapshot .. .we can provide it on request.

Regards
Sourish

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Behaviour of Vertical Scrollbar

Post by Support Team » Fri Jun 28, 2013 12:46 pm

Hello,

Could you please post or send us a Ranorex Snapshot of your application in order to analyze it?

Thank you in advance.

Regards,
Markus (T)

SourishHalder
Posts: 5
Joined: Thu Jun 20, 2013 5:05 am

Re: Behaviour of Vertical Scrollbar

Post by SourishHalder » Fri Jul 12, 2013 5:13 am

Hello Markus,

Apologies for the delay. Attached is the snapshot of the vertical scrollbar.
Please notice that even though there is one vertical scrollbar in the form , there is another dummy repository item that gets created pointing to the same repo item , but has no additional value... which is a bit strange.

Thanks in advance
Sourish
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Behaviour of Vertical Scrollbar

Post by Support Team » Mon Jul 15, 2013 4:46 pm

Hello,

Thank you for the snapshot file.
You have to use the scroll bar element where the attribute "@accessiblename='Vertical'" is available.
This should be the element with the attribute FlavourName='msaa'.
Add the scroll bar element to your repository and use "SetValue" action as shown below.
ScrollBars.png
The value "80" represents the position or the scroll indicator.

Regards,
Bernahrd
You do not have the required permissions to view the files attached to this post.

SourishHalder
Posts: 5
Joined: Thu Jun 20, 2013 5:05 am

Re: Behaviour of Vertical Scrollbar

Post by SourishHalder » Thu Aug 01, 2013 6:23 am

Hello ,

In regards to your response , I tried explicitly setting the value of the scrollbar with the attribute FlavourName = 'msaa' in the *.rxrec ... but we were still not able to control the movement of the scrollbar. Can you suggest any particular setting or property we should be looking at.

Regards,
Sourish

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Behaviour of Vertical Scrollbar

Post by Support Team » Mon Aug 05, 2013 2:04 pm

Hello,

I would like to analyze the issue in more detail.
Would it be possible to have an online meeting? For the further communication I would suggest using email. Please send your answer to [email protected].
Thank you!

Regards,
Bernhard