Compare GetText values to Datatable items

Compare GetText values to Datatable items

Home Forums Ask Expert Compare GetText values to Datatable items

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31570
    Mark Webb
    Participant

      I also tried this:
      Application(“OLS Mobile”).View(“PolicyInfo”).Object(“txt_PolicyNumber”).Contains(input_pnum)
      But got this back in the report:
      38 PolicyInfo txt_PolicyNumber Contains Text “34956912” not found in object string: “”

      Even though the result of this:
      policynum = Application(“OLS Mobile”).View(“HomeownerPolicyInfo”).Object(“txt_PolicyNumber”).GetText
      Application(“OLS Mobile”).CustomReport true, “Policy Number”,policynum
      Produced:
      40 OLS Mobile Policy Number 34956912

      #31571
      Sasha ZAP
      Moderator

        Hello mark.webb,

        Regarding your first post please try the following:
        policynum = CStr(Application(“OLS Mobile”).View(“HomeownerPolicyInfo”).Object(“txt_PolicyNumber”).GetText)
        In the condition section you can also use:
        If InStr(policynum, input_pnum) > 0 then…

        If the above still will not work:
        Can you please attach a screenshot of the page you are trying to check and specify which of its items you have trouble with (Please do not mark anything in the screenshot itself so we can work on it).

        Thanks,
        ZAPTEST Team

        #31576
        Mark Webb
        Participant

          The solution provided worked. Thanks very much for your quick response!

          #31577
          Sasha ZAP
          Moderator

            Thank you mark.webb.

            Thanks,
            ZAPTEST Team.

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

          Virtual Expert

          ZAPTEST

          ZAPTEST Logo