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?
Having trouble with 'Infragistics' combobox
-
- Posts: 6
- Joined: Tue Jul 09, 2013 4:23 am
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Having trouble with 'Infragistics' combobox
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)
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)
-
- Posts: 6
- Joined: Tue Jul 09, 2013 4:23 am
Re: Having trouble with 'Infragistics' combobox
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
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
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Having trouble with 'Infragistics' combobox
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)
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)
-
- Posts: 6
- Joined: Tue Jul 09, 2013 4:23 am
Re: Having trouble with 'Infragistics' combobox
Hi Markus,
I have just modified the names for security purpose . My bad, should have put a note. Anyway was able to get the workaround
Many thanks
Regards,
Anantha Krishnan.K
I have just modified the names for security purpose . My bad, should have put a note. Anyway was able to get the workaround
Many thanks
Regards,
Anantha Krishnan.K
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Having trouble with 'Infragistics' combobox
Hello,
Thanks for your info.
Regards,
Markus (T)
Thanks for your info.
Regards,
Markus (T)