Page 1 of 1

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

Posted: Mon May 31, 2010 10:46 am
by hobli
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

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

Posted: Mon May 31, 2010 1:45 pm
by Support Team
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

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

Posted: Mon May 31, 2010 2:03 pm
by hobli
Great!
I am looking forward to the new release! :)

thanks

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

Posted: Tue Jul 06, 2010 3:59 am
by hobli
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?

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

Posted: Tue Jul 06, 2010 4:12 pm
by Support Team
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