Page 1 of 1

Ranorex Combobox selection by index and all ranorex custom method

Posted: Fri Jun 11, 2021 1:50 pm
by amitgupta
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

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

Posted: Fri Jun 11, 2021 2:10 pm
by odklizec
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.

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

Posted: Fri Jun 18, 2021 9:57 pm
by amitgupta
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

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

Posted: Fri Jun 18, 2021 11:18 pm
by odklizec
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.