fbpx

Field clear issue

Field clear issue

Home Forums Ask Expert Field clear issue

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #31406
    Asif Qureshi
    Participant

      Hi ZAPTEST Tea,
      I am facing one problem. when I cleared the login field it started middle of the text field not from right side that’s why field is not prospered cleared.

      See Attached file.
      Regards,
      AQU

      Attachments:
      #31407
      Sasha ZAP
      Moderator

        Hello aqu,

        This happens because you first use the method “Click” which sets the position of the caretcursor in the middle of the object (“TestABC”):
        Instead of using “Click” please use Exist”.

        Let me know if this helps.

        Thanks,
        ZAPTEST Team

        #31440
        Asif Qureshi
        Participant

          Hi ZAPTEST Team,

          Nothing happened same problem is coming.
          See modified code

          Regards,
          AQU

          Attachments:
          #31441
          Sasha ZAP
          Moderator

            Hello aqu,

            Please let me know the following:
            After you run this piece of script can you open the test’s results and check if the object does get recognized (If the Exist method found the objectת in the results you have to see the object highlighted).

            If it does please sent me the test’s final results.

            Thanks,
            ZAPTEST Team

            #31442
            Asif Qureshi
            Participant

              Hi ZAPTEST Team,

              After run the scripts field is not empty yet.

              See attached screen
              Regards,

              Attachments:
              #31443
              Sasha ZAP
              Moderator

                Hello aqu,

                In the final test’s results I cannot see if the expected object was found (Sometimes ZAPTEST may find similar object instead the required one):
                Please click the “ExtendCollapse Rows” button so we can see if rows’ #16 and #17 show the object.

                Thanks,
                ZAPTEST Team

                Attachments:
                #31444
                Asif Qureshi
                Participant

                  Hi ZAPTEST Team,

                  Now you can see the value. 🙂
                  Please see attachment.

                  Regards,
                  AUQ

                  Attachments:
                  #31445
                  Sasha ZAP
                  Moderator

                    Hello aqu,

                    I need to see if the Exist method finds the object, if you expended all rows then as I understood now the Exist method’s execution is in line #24, correct?
                    If yes then it appears the Exist method found some other object and not the “TestABC” object (If this is true then this is the reason why the Type “” method’s execution did not work as expected).

                    To verify it please do the following:
                    1. Run the test again.
                    2. After it finishes in ZAPTEST go to Tools -> Options -> Runtime -> Results Folder -> Click the “Open” button and find the last test’s results, please attach it to your next reply.

                    Thanks,
                    ZAPTEST Team

                    #31446
                    Asif Qureshi
                    Participant

                      Hi ZAPTEST Team,

                      See Detailed report.

                      Regards,
                      AUQ

                      Attachments:
                      #31447
                      Sasha ZAP
                      Moderator

                        Thanks aqu.
                        Change the Exist method with the DblClick method, and leave the Type “” method.

                        Please let me know if it worked.

                        Thanks,
                        ZAPTEST Team.

                        #31448
                        Asif Qureshi
                        Participant

                          Hi ZAPTEST Team,
                          After DblClick method, there are two issues are come.
                          Issue-1:
                          It take around 15 second to clear the field.

                          Issue2:
                          I used same method in password screen. it did not clear the complete field why?

                          See attached file

                          Regards,
                          AUQ

                          Attachments:
                          #31449
                          Sasha ZAP
                          Moderator

                            Hello aqu,

                            The 2 issues you’ve mentioned may be because the objects are not being recognized properly during Runtime.

                            Please try to use the following code (Change the “object” object to the one you wish to execute the code upon):

                            ‘Click on the object
                            Application(“Application”).View(“View”).Object(“object”).Click
                            ‘Click key Home keyboard key
                            Application(“Application”).KeyPress 36
                            ‘Press Shift keyboard key
                            Application(“Application”).KeyDown 16
                            ‘Click the End keyboard key
                            Application(“Application”).KeyPress 35
                            ‘Release Shift keyboard key
                            Application(“Application”).KeyUp 16
                            ‘Click key Backspace keyboard key
                            Application(“Application”).KeyPress 8

                            Please note if the above code will not work there is a possibility that you’ll have to redefine the objects in ZAPTEST Object Repository.

                            Please let me know if the above helped.

                            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