Results 1 to 3 of 3
  1. #1

    Dynamic Confirmation Text Validation


    I am trying to verify confirmation number displayed on the page after submitting the transaction.

    On Object Repository
    When added object to repository manually , it is stored as
    Name: WebTable
    Class :WebElement
    innertext: 123456 'confirmation number on the page.

    Confirmation number is generated dynamically and How to verify this dynamic text against DB stored value.

    All I want to is verify a text(dynamic) on the page.


    Post Extras

  2. #2

    Re: Dynamic Confirmation Text Validation

    There are 2 ways. One is to read it through a reference object and extract it using text. Something like "Order Confirmation: XXXXX" and then extracting "XXXXX" from the same.

    Another way is to use a pattern which is unique to the order #. So in this case if it six digits or higher then it could be \d{6,}

  3. #3

    Re: Dynamic Confirmation Text Validation

    What I would do:

    1) Query the db for the confirmation number.
    2) Use SetToProperty or descriptive programming to verify the WebElement with innertext equal to the confirmation number exists.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:44 PM.

Copyright BetaSoft Inc.