Forum Discussion

Petewilson's avatar
Petewilson
Contributor
6 years ago
Solved

iOS menu appears after a higher option is selected, but TC can't see it.

Hello all, i am hoping someone can  point me in the right direction of an issue i am having with testing an iOS app.   I have a menu down the left hand side. Dependant on what has been selected, ...
  • Petewilson's avatar
    5 years ago

    I have resolved this by changing my script left nav search to the below. Much faster and more stable with changing menus than my previous method.

     

    procedure Find_Label_Touch(ControlName : String; Driver: OleVariant);
    var
      target_CollectionView;
      target_Label;
      Value;
    begin
      Value := Project.Variables.Driver.Value(ControlName);
      If Value <> 'Blank' then 
      begin
        target_CollectionView := Aliases.Device.processApplication.window0.tableview0;
        target_Label := target_CollectionView.Find( ['ObjectType', 'ObjectText'], ['Label', Value], 20000);
        target_Label.Touch();
      end;
    end;