Ranorex Combobox selection by index and all ranorex custom method

Ranorex Spy, Recorder, and Studio.
amitgupta
Posts: 28
Joined: Sun Mar 28, 2021 7:58 pm

Ranorex Combobox selection by index and all ranorex custom method

Post by amitgupta » Fri Jun 11, 2021 1:50 pm

Dear Team,

Could you please guide me about steps for selecting combobox item by Index or text number because i have tried with 'data-offset-index' and 'tabindex but no luck .it is working fine when i call set method with tagvalue.

Apart from this ,Could we see internal code for any plugin method if we want to call so that it will be great for understanding any method as better way and implementing as better way .

I tried to see view code and press key on method from F1 to F12 but no luck .

There are so many method if we want to apply any other method except recording approch ( add repository by spy and call method ) then it is very difficult to choose correct method ,

Could u help me on this?
/Report.Log(ReportLevel.Info, "Set value", "Setting attribute data-offset-index to '2' on item 'STS.LiTag62Brownsville'.", repo.STS.LiTag62BrownsvilleInfo, new RecordItemIndex(136));
//repo.STS.LiTag62Brownsville.Element.SetAttributeValue("data-offset-index", "2");
////repo.STS.KSelect2.Click();
//Delay. Milliseconds(0);
Thanks
Amit

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6781
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex Combobox selection by index and all ranorex custom method

Post by odklizec » Fri Jun 11, 2021 2:10 pm

Hi,

Please upload a Ranorex snapshot of the combobox you want to automate. This is the best way how to get a reasonable and sensible suggestion. Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

amitgupta
Posts: 28
Joined: Sun Mar 28, 2021 7:58 pm

Re: Ranorex Combobox selection by index and all ranorex custom method

Post by amitgupta » Fri Jun 18, 2021 9:57 pm

odklizec wrote:
Fri Jun 11, 2021 2:10 pm
Hi,

Please upload a Ranorex snapshot of the combobox you want to automate. This is the best way how to get a reasonable and sensible suggestion. Thanks.
team i have shared attached screen shot and it created confusion which combo attribute value need to select for calling 'SET' method . when i select innertext , it is giving blank value without fail.

Could you guide each attribute value for combo box set method ?

Apart from this , when we convert script to user code /view code then how can we see all internal logic of any method ?

thanks
Attachments
6-19-2021 2-08-24 AM.jpg
6-19-2021 2-08-24 AM.jpg (309.9 KiB) Viewed 199 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6781
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex Combobox selection by index and all ranorex custom method

Post by odklizec » Fri Jun 18, 2021 11:18 pm

Hi,

Please create and upload a Ranorex snapshot for the problematic combo. You can learn how to create snapshot here:
https://www.ranorex.com/help/latest/ran ... hot-files/

Snapshots are much easier to work with, because they contain complete gui structure with all xpaths. From screenshots, one must retype xpaths, which is boring and frustrating work. So please, create and share snapshot. Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration