fbpx

Type don’t do anything

Type don’t do anything

Home Forums Ask Expert Type don’t do anything

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #31888
    Nuno Seixas
    Participant

      Hello,

      When I’m trying to type something into a textbox but it doesn’t do anything.
      In the report it passed but actually it didn’t wrote anything there.
      I already tried to re-Scan that multiple times, but nothing changed .
      Is there any special thing to do that?
      I just created an object around the text box and then “Application(“ParkMap”).View(“UpdateOrder”).Object(“SearchTool”).Object(“textBox”).Type(“CONFIRMED ORDERS”);”
      or
      “Application(“ParkMap”).View(“UpdateOrder”).Object(“textBox”).Type(“CONFIRMED ORDERS”);”
      if I remove the parent object.

      Many thanks.

      Attachments:
      #31890
      Kirill Bulatnikov
      Participant

        Hello Nuno
        In this case please use “Search Text:” header as a parent object for the textbox. Using of entire search text area as an object is not precise enough.

        Hope that helps.
        Thanks,
        ZAPTEST Team.

        #31892
        Nuno Seixas
        Participant

          Didn’t work…
          I already tried multiple textbox’s in different views and it worked only once…don’t understand why.

          #31893
          Kirill Bulatnikov
          Participant

            Can you upload the script and I’ll take a look what may be wrong?

            #31894
            Nuno Seixas
            Participant

              This one for example.
              The first textbox it work, but not the second one.
              Don’t know why. :unsure:

              Thanks

              Attachments:
              #31895
              Kirill Bulatnikov
              Participant

                For some reason textboxes were not related to any anchor. I set relative object for text box in both views.
                Please try updated version

                Attachments:
                #31899
                Nuno Seixas
                Participant

                  Same happening.
                  First works.
                  Second doesn’t.

                  #31900
                  Kirill Bulatnikov
                  Participant

                    Try to change object property Precision to High for “Enter your password:” object.
                    Probably ZAPTEST find “Enter Password:” (it is partially matches) and use it as an anchor.

                    #31935
                    Nuno Seixas
                    Participant

                      Actually it can’t even find any of the objects.

                      Attachments:
                      #31936
                      Kirill Bulatnikov
                      Participant
                        #31937
                        Nuno Seixas
                        Participant

                          Ok, I think I found a way. Every time that I what to write something into a textbox I have to scan that windows into a new application.
                          Because the main application setting doesn’t allow me to write.

                          #31938
                          Kirill Bulatnikov
                          Participant

                            If each next view appears like a new window with different application class and title then probably yes. And if it’s still the same one then you can play with class ans title property of the application. Just compare these proprieties’s values for different applications and you may be able to keep some permanent string of the parameter value. Also it may be viable to remove value of title parameter (regexpwndtitle) at all.

                            Hope that helps.
                            Thanks,
                            ZAPTEST Team

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

                          Virtual Expert

                          ZAPTEST

                          ZAPTEST Logo