Ensure visible does not work on bottom list item

Ask general questions here.
LetsGoBlackhawks
Posts: 12
Joined: Wed Oct 08, 2014 12:47 pm

Ensure visible does not work on bottom list item

Post by LetsGoBlackhawks » Wed Dec 17, 2014 8:11 pm

I have a loop that does the same thing each time. There is a list of listitems that each are clicked in their respected iteration in the loop.

Ensure visible works for all the items except for the last listitem in the list. The Ensure visible call will timeout saying it could not find the item.

The item is indeed in existence. If I scroll down to the bottom while the test is running to help it, it will recognize the item is there and click it.

Has anyone else seen this issue? Really hope I don't have to write user code to workaround this seemingly trivial task.

Ranorex Version: 5.1.3.19973
OS: Windows 7 Enterprise
SUT Code Language: C#
Last edited by LetsGoBlackhawks on Wed Dec 17, 2014 8:40 pm, edited 1 time in total.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ensure visible does not work on bottom list item

Post by krstcs » Wed Dec 17, 2014 8:37 pm

Could you please include the following information when you have issues:

1. What version of Ranorex are you using?
2. What version of Windows are you using?
3. What technology is the SUT developed in?

It is difficult to understand the full scope of the problem without those pieces of information.

Also, if you could post a Ranorex Snapshot of the list that would be helpful. (Creating Ranorex Snapshot Files) You can send it to [email protected] if you can't post it here.

If you believe this is a bug, would it be possible to create a small demonstration app and Ranorex test so that the Ranorex guys can see what you are seeing?
Shortcuts usually aren't...

LetsGoBlackhawks
Posts: 12
Joined: Wed Oct 08, 2014 12:47 pm

Re: Ensure visible does not work on bottom list item

Post by LetsGoBlackhawks » Wed Dec 17, 2014 8:42 pm

I have updated my original post with that information.

I could try creating a sample test possibly next week ... kind of under time constraints right now because of the Holidays.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ensure visible does not work on bottom list item

Post by krstcs » Wed Dec 17, 2014 8:53 pm

Thanks!

When you say C#, do you mean WPF or WinForms?
Shortcuts usually aren't...

keith
Posts: 14
Joined: Thu Nov 27, 2014 2:07 pm

Re: Ensure visible does not work on bottom list item

Post by keith » Thu Dec 18, 2014 3:40 pm

Ranorex cares, depending on what type of action you are doing, if you can actually view the element in the list. If you are, for example, trying to click on something or ensure something is visible when it is not visible, you may need to use a different action to do what you want to do.
Imagine a drop down box with 100 items and you can only view the first 5). Some actions would require the value you want to click on to be available after clicking on the drop down activator. Other actions like invoke actions may allow you to select any value (even if it is not visible). If you want to keep using the action the way you are doing, you will need to scroll first. Otherwise try a different action.
Not sure if this is really your question or not but that is what I read out of it.
Cheers,
keith