Weird scrolling using Chrome and IE on full screen

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Florian
Posts: 75
Joined: Fri Jul 27, 2012 12:57 pm
Location: France (Lyon)
Contact:

Weird scrolling using Chrome and IE on full screen

Post by Florian » Fri Jul 26, 2013 12:54 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Weird scrolling using Chrome and IE on full screen

Post by Support Team » Tue Jul 30, 2013 12:56 pm

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)
.
Image

Florian
Posts: 75
Joined: Fri Jul 27, 2012 12:57 pm
Location: France (Lyon)
Contact:

Re: Weird scrolling using Chrome and IE on full screen

Post by Florian » Fri Aug 16, 2013 3:02 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Weird scrolling using Chrome and IE on full screen

Post by Support Team » Mon Aug 19, 2013 3:53 pm

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
.
Image

Florian
Posts: 75
Joined: Fri Jul 27, 2012 12:57 pm
Location: France (Lyon)
Contact:

Re: Weird scrolling using Chrome and IE on full screen

Post by Florian » Tue Aug 20, 2013 8:20 am

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!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Weird scrolling using Chrome and IE on full screen

Post by Support Team » Wed Aug 21, 2013 4:04 pm

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
.
Image

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: Weird scrolling using Chrome and IE on full screen

Post by fimo420 » Thu Aug 29, 2013 7:39 am

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
Attachments
snapshot.rxsnp
(113.19 KiB) Downloaded 171 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Weird scrolling using Chrome and IE on full screen

Post by Support Team » Mon Sep 02, 2013 12:33 pm

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
.
Image

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: Weird scrolling using Chrome and IE on full screen

Post by fimo420 » Mon Sep 02, 2013 2:14 pm

Hi Marckus,

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Weird scrolling using Chrome and IE on full screen

Post by Support Team » Tue Sep 03, 2013 2:03 pm

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
.
Image