how to chk option item is in viewable area of listbox?

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
hobli
Posts: 59
Joined: Thu Jul 30, 2009 1:15 am

how to chk option item is in viewable area of listbox?

Post by hobli » Mon May 31, 2010 10:46 am

Hi,

I would like to check if certain option item under a listbox is in the viewable region or not. Below is the html code in sample application:

Code: Select all

<select myattri='cool' name="listbox" id="SelectSimple" size="4"  multiple=true>
    <option value="1">item 1</option>
    <option value="2" >item 2</option>
    <option value="4">item 4</option>
	<option value="0" selected>All</option>
	<option value="3" selected>  item 3  sdfasfdasdf asdf asd fasfdasd asd    </option>    
</select>
When test with FF, each individual option item size can be detected, so it's possible the test if an option item is in the listbox's viewable area or not. However, when try with IE 7, no dimension information on option item can be detected.

Is this the limitation of Ranorex 2.3.1? Is there any workaround/solution to this issue?

thanks a lot

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

Re: how to chk option item is in viewable area of listbox?

Post by Support Team » Mon May 31, 2010 1:45 pm

Hi,
hobli wrote: Is this the limitation of Ranorex 2.3.1? Is there any workaround/solution to this issue?
Yes we know about that limitation and we improved this issue too with the bug you posted. This release should be available at end of the next week. Then you can use the visible state of the option tag to check if it's in the viewable area or not.

Regards,
Peter
Ranorex Support Team

hobli
Posts: 59
Joined: Thu Jul 30, 2009 1:15 am

Re: how to chk option item is in viewable area of listbox?

Post by hobli » Mon May 31, 2010 2:03 pm

Great!
I am looking forward to the new release! :)

thanks

hobli
Posts: 59
Joined: Thu Jul 30, 2009 1:15 am

Re: how to chk option item is in viewable area of listbox?

Post by hobli » Tue Jul 06, 2010 3:59 am

Hi, Ranorex support team,

I am using ranorex 2.3.2 testing option item visibility under a selectTag.
Following is the html code:

Code: Select all

<select name="listbox" id="SelectSimple" size="4"  multiple=true>
    <option value="1">item 1</option>
    <option value="2" >item 2</option>
    <option value="4">item 4</option>
    <option value="0" selected>All</option>
    <option value="3" selected>  item 3  sdfasfdasdf asdf asd fasfdasd asd    </option>    
</select>
Now ranorex Spy can retrieve the visibility of option items properly with IE7.0, but when test with Firefox 3.6.6, it always return "true" for all option item's visiblity.

is this a bug?

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

Re: how to chk option item is in viewable area of listbox?

Post by Support Team » Tue Jul 06, 2010 4:12 pm

Hi,

This is not a bug, it is a limitation of Firefox. We are currently searching for a solution how we can access this attributes and provide it for the user. Such a functionality will be released in a future version of Ranorex.

Regards,
Peter
Ranorex Support Team