Menu item selection – reused code2

Menu item selection – reused code2

Home Forums Ask Expert Menu item selection – reused code2

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47944
    Sasha ZAP
    Moderator

      Hello Marco,
      Can you please add the files again? It appears your files’ upload link got expired.
      I’m sorry about this.
      Thanks,
      ZAPTEST Team

      #48012
      Marco Malziotti
      Participant
        #48013
        Sasha ZAP
        Moderator

          Hello Marco,
          Thank-you, I’ve managed to open the link now.
          I’ll check your issue and reply as soon as possible.
          Thanks,
          ZAPTEST Team

          #48016
          Sasha ZAP
          Moderator

            Hello Marco,
            I’ve tried to execute the test but got a “403 Forbidden” error.

            Basically in your test I’ve noticed that you tried to use an Area object, which may work for you to find the required line of data, but you did one major mistake:
            You cannot set Area’s parent object as a dynamic object which its Properties’ values change during runtime, as you are doing in this command:
            Application(“SystemConsole”).View(“MultipleChoiceFromList2”).Object(“lblLabel”).SetProperty “Text”,”Drop off DMS'”
            In order ZAPTEST will locate the Area object, its parent object must be a static object which ZAPTEST will recognize quickly in the app, meaning:
            The “lblLabel” object must have already in its Text properties the “Drop off DMS'” text BEFORE the test gets executed (You can set a unique “lblLabel” object such as “lblDropofDMSLabel”).Therefore you cannot use the above mentioned command for an Area object’s parent.
            But you DO able to set properties’ values during runtime to the Area’s child object – Therefore such command is correct:
            Application(“SystemConsole”).View(“MultipleChoiceFromList2”).Object(“lblLabel”).Area(“areaList”).Object(“lblUnselected”).SetProperty “Text”,drfDms
            Hope this helps.
            Thanks,
            ZAPTEST Team

            #48027
            Sasha ZAP
            Moderator

              Hello Marco,
              Regarding the Area object I just wanted to mention the following:
              You do have the option to set the Area parent object as a dynamic object (For example, as you’ve coded, by changing its “Text” property during runtime), but this you can do ONLY after executing a command that has a status Area’s parent object + Its related Area object + One of Area’s objects child object, for example:
              Application(“SystemConsole”).View(“MultipleChoiceFromList2”).Object(“lblLabel”).Area(“areaList”).Object(“lblUnselected”).Exist
              And only after the above command will be executed you can execute a command such as:
              Application(“SystemConsole”).View(“MultipleChoiceFromList2”).Object(“lblLabel”).SetProperty “Text”,”Pickup DMS”
              Hope this helps.
              Thanks,
              ZAPTEST Team

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.

            Virtual Expert

            ZAPTEST

            ZAPTEST Logo