Page 1 of 1

I can't use SelectedItemText and SelectedItemIndex

Posted: Thu Sep 24, 2015 10:41 pm
by wlijo
Hi to all,

I have a new problem, I had an automated test that I was able to Set Value with SelectedItemIndex and Validate SelectedItemText in the new release I can't find this options.


Ranorex 5.4.2.25689
Windows 7 SP1

Re: I can't use SelectedItemText and SelectedItemIndex

Posted: Fri Sep 25, 2015 8:09 am
by odklizec
Hi,

Could you please post xpath of the elements in question (Tercero and Propia)? What exactly happens if you run your test? Please post the error message you are getting.

Re: I can't use SelectedItemText and SelectedItemIndex

Posted: Fri Sep 25, 2015 9:36 am
by Support Team
Hi wlijo,

I created a small test to check if the Set Value still works with comboboxes, and in my case this works as expected.
Could it maybe be that your AUT, or the specific control have changed?
As odklizec wrote, the report or the error message would be very helpful here.

Thanks,
Markus

Re: I can't use SelectedItemText and SelectedItemIndex

Posted: Fri Sep 25, 2015 1:10 pm
by wlijo
Thanks odklizec and Markus

The Xpaht is (both are the same):

/form[@accessiblename~'u:TraderBanco01 ']/container[@name='ppalPanel']/container[@name='perspectivePane']/?/?/container[@type='CustomSplitPane']/?/container[@type='CustomSplitPane']/?/?/?/container[@type='DefaultViewImpl']/?/?/container[@type='OrderViewImpl']/container[@name='centralPanel']/container[@name='orderInputPanel']/combobox[4]/button

As you will see, SelectItemIndex it show no error message, anyway fail.

I talked with the developer and he told me that nothing change, and I tried a previous release and it doesn't work, and this TC was created with this release.

The only thing that i changed was Ranorex version.

Thanks!
Walter.-

Re: I can't use SelectedItemText and SelectedItemIndex

Posted: Fri Sep 25, 2015 2:39 pm
by odklizec
The path you posted seems point to a button, which has no SelectedItemText and SelectedItemIndex attributes. Such attributes seem to be available only for the parent ComboBox element. Are you sure these attributes were previously (in 5.4.1) available for pointed button? I would suggest to remove "button" from the path and the problem should be gone ;)

Re: I can't use SelectedItemText and SelectedItemIndex

Posted: Fri Sep 25, 2015 2:58 pm
by wlijo
Pavel thanks a lot for your answer.

I'm sure that in previous versions works, anyway I deleted "button" and stat to work.

Thanks again.

Regards,