Having trouble with 'Infragistics' combobox

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
anantha.krishnan
Posts: 6
Joined: Tue Jul 09, 2013 4:23 am

Having trouble with 'Infragistics' combobox

Post by anantha.krishnan » Tue Jul 09, 2013 4:36 am

Hi,
I have been using the ranorex for a while and works great. Recently, i stumbled on few object identification issues when trying to use it against 'Infragistics' combobox.

Snippet of the code is attached
Ranorex.ComboBox combobox="/form[@controlname='frmMain']/element[@controltypename='MdiClient']/form/element[@controlname='Search']/element[@controlname='cmbID']/combobox/combobox[@accessiblerole='ComboBox']";
Button open = combobox.FindChild<Ranorex.Button>("Open");
open.Click();
ListItem listItem = "/form[@title='']/element/table/container/container[@accessiblename='Scrolling Region']";
listItem.Focus();
listItem.Click();


When i execute the above code, it is able to click on the control but unable to pick the item from the container recongized by 'ScrollingRegion'

I face the same issue cited in the below link
http://www.ranorex.com/forum/selecting- ... t1257.html

a mouse click on a ContainerScrolling_Region (xpath of element/table/container/container[@accessiblename='Scrolling Region'])

Is there any workaround for this?

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

Re: Having trouble with 'Infragistics' combobox

Post by Support Team » Wed Jul 10, 2013 10:17 am

Hello,

Could you please post or send us ([email protected]) a Ranorex Snapshot of your application?
This would help us in order to analyze your issue.
Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Thank you in advance.

Regards,
Markus (T)
.
Image

anantha.krishnan
Posts: 6
Joined: Tue Jul 09, 2013 4:23 am

Re: Having trouble with 'Infragistics' combobox

Post by anantha.krishnan » Thu Jul 11, 2013 8:34 am

Hi,
Please find the snapshot attached. Meanwhile I was able to scout for the solution.

ListItem item=combobox.FindSingle<ListItem>("/form[@controlname='frmMain']/element[@controltypename='MdiClient']/form/element[@controlname='Search']/element[@controlname='Nationality']/combobox/combobox/list/listitem[@accessiblename='INDIA']");
Accessible accItem = new Accessible(item); // create Accessible adapter
accItem.DoDefaultAction();
accItem.Click();

The click event is able to select it but it does move the mouse to the leftmost on the form after selection. Is there any settings to avoid MSAA based recording and enable it to use Accessible adapters?

Regards,
Anantha
Attachments
Snapshot.rxsnp
Snapshot
(462.61 KiB) Downloaded 174 times

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

Re: Having trouble with 'Infragistics' combobox

Post by Support Team » Fri Jul 12, 2013 1:39 pm

Hello,

Please note that MSAA is Accessible.
Therefore, it's not possible to use Accessible without MSAA.

Unfortunately, your screenshot seems to be wrong.
The snapshot doesn't contain a form with the control name 'frmMain'.
Could you please post a new snapshot?

Thank you.

Regards,
Markus (T)
.
Image

anantha.krishnan
Posts: 6
Joined: Tue Jul 09, 2013 4:23 am

Re: Having trouble with 'Infragistics' combobox

Post by anantha.krishnan » Thu Jul 18, 2013 10:24 am

Hi Markus,
I have just modified the names for security purpose :D . My bad, should have put a note. Anyway was able to get the workaround

Many thanks

Regards,
Anantha Krishnan.K

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

Re: Having trouble with 'Infragistics' combobox

Post by Support Team » Fri Jul 19, 2013 1:05 pm

Hello,

Thanks for your info.

Regards,
Markus (T)
.
Image