Ask a Question

Finding a accelerator control listview item

SOLVED
Macs
Occasional Visitor

Finding a accelerator control listview item

Hello,

We have just started using Test Complete to automate Android RF Scanner, but currently we are using manual testing approach.

Is there any way I can find an item from accelerator control list view by name?

All I would like to do is

On Android RF Scanner when it shows menu items I would like to perform a touch or click to open selected manu item.

Below is my code, but I am not getting any item

 

Mobile.SetCurrent("Moto G (5) Plus");
TestedApps.uk_co_macs_software_RFAndroid.Run();
let navigationpage = Aliases.Device.Process_macs_software_RFAndroid.navigationpage;
let grid = navigationpage.loginpage.grid.grid;
let acceleratorcontrol = navigationpage.MainPage.grid.grid.frame.lvAcceleratorsList;
function FindItem(){ var itemCount = acceleratorcontrol.wItemCount; var menuItem = ""; for(var i = 0; i < itemCount; i++){ menuItem = acceleratorcontrol.wItem[i];
//menuItem = acceleratorcontrol.FindByName("Putaway"); if(menuItem == name) { acceleratorcontrol.TouchItem(menuItem); return i; }

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Finding a accelerator control listview item

Have you been through all these setup steps?

 

https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/preparing/devices/physica...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

1 REPLY 1
Marsha_R
Community Hero

Re: Finding a accelerator control listview item

Have you been through all these setup steps?

 

https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/preparing/devices/physica...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: