Macs
6 years agoOccasional 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;
}
Have you been through all these setup steps?