Page 1 of 1

Weird scrolling using Chrome and IE on full screen

Posted: Fri Jul 26, 2013 12:54 pm
by Florian
Hi,

I am encountering a weird issue with IE and Chrome (but not with Firefox !).
I recorded two videos to show you what happens (it will be simpler than describe all the steps):
- Video of the working test
- Video of the weird test

To sum up:
1- I navigate to one page (http://www.ldlc.com/informatique/piece/ ... -pc/c4289/)
2- I set up specifics filter options and click on the "Filter" button
3- Once the page is loaded, I only move the cursor on the "Prix" column head.

=> On the first video, using Chrome not on full screen, it works well.
=> On the second video, using Chrome on full screen, the page scrolls down even if the link is visible.

Some weeks ago we add a "mini-header" which appears one the page is scrolled down, thus instead of clicking on the right link, Ranorex clicks on the Basket link of the mini-header ... I tried many things but up to now it's very frustrating ...
Help me :)

Edit:
I am using the last Ranorex version: 4.0.5
Chrome up to date, Firefox 20 and IE9
It works well on FF20 but not on Chrome and IE9

Re: Weird scrolling using Chrome and IE on full screen

Posted: Tue Jul 30, 2013 12:56 pm
by Support Team
Hello,

It seems that the 'mini-header' causes this behavior.
It works for me with Chrome but not with Firefox and Internet Explorer.

As workaround, you could try to make an element of the upper area (e.g. 'Filtrer' button') visible.
Simply add a new action 'Invoke Action > Ensure Visible' for your Repository item before you click on 'Prix'.

Regards,
Markus (T)

Re: Weird scrolling using Chrome and IE on full screen

Posted: Fri Aug 16, 2013 3:02 pm
by Florian
Thank you for your reply.
I was not able to answer before because I was on holidays.

I've just tried what you said but the issue remains.
The screen scrolls up to show the 'Filtrer' button, but then the screen scrolls down again.

It is so weird that the screen scrolls even if the item is visible.

Re: Weird scrolling using Chrome and IE on full screen

Posted: Mon Aug 19, 2013 3:53 pm
by Support Team
Hello,

No problem!

I created a small test and added the steps described, but in my case, I am using Rx 4.1, everything worked as expected. I tested it with Chrome 29, IE 9 and Firefox 22.
Could you please for test purposes set the "Ensure Visible" property of the used repository items (the items used to select the filter settings) to "False"?

Thanks,
Markus

Re: Weird scrolling using Chrome and IE on full screen

Posted: Tue Aug 20, 2013 8:20 am
by Florian
Thank you for your answer.

I tried last Friday with Rx 4.1 but it was the same.
Nevertheless I've just tried this morning with your suggestion ("Ensure Visible" property) and it works! :)
This property actually tells Rx not to scroll the screen if the element is not visible on the page?

Thank you very much for this idea!

Re: Weird scrolling using Chrome and IE on full screen

Posted: Wed Aug 21, 2013 4:04 pm
by Support Team
Hi,

Yes, it can be explained in this way ;).

EnsureVisible makes sure that the specific control is in the visible area and if not it tries to bring it back to the visible area, which is not always an easy task.
The functionality depends on the used technology and it is not just about checking the "Visible" attribute of the specific control.

Regards,
Markus

Re: Weird scrolling using Chrome and IE on full screen

Posted: Thu Aug 29, 2013 7:39 am
by fimo420
Hi

Sorry for borrowing the thread, i think i have the same issue here as the creator but with Firefox.
Everytime i try to click on a textbox inside an page the scroller goes nuts and goes to the bottom of the page, even though the textbox is in the middle of the page.

I've tried to set ensure visible to false, but it didint help.
The textbox is in the middle and the scrollbar is at the bottom of the page :(
The only thing ensure visible=false, helped was that before it used to jump back and fort between trying to focus the item and to bottom of the page, and now it stopped trying to focus the item.

So is there any solution that i can try out?
Please let me know if you need anything from my side.
Also, even if i do highlight of the item from ranorex spy, the page scrolls to the bottom :(

I'm attaching a screenshot of the page.
Ranorex 4.1
Firefox v21 and v23

Re: Weird scrolling using Chrome and IE on full screen

Posted: Mon Sep 02, 2013 12:33 pm
by Support Team
Hi,

Do you just want to select the specific element?
If so, do you have already tried to use the "Invoke Action -> PerformClick" action?

Regards,
Markus

Re: Weird scrolling using Chrome and IE on full screen

Posted: Mon Sep 02, 2013 2:14 pm
by fimo420
Hi Marckus,

Thanks that solved the problem, whats the difference between click and performclick?

Re: Weird scrolling using Chrome and IE on full screen

Posted: Tue Sep 03, 2013 2:03 pm
by Support Team
Hi,

PerformClick() invokes a click action without moving the mouse.
Click() actually moves the mouse the location and clicks on the element (simulates a real mouse click).

Regards,
Markus