SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Regular Expression for 20/08/06 to 21/09/06

    Hi All,
    I came across a problem. I am using QTP 8.0 and testing a web based application, there is a heading like "WWW for period 20/08/06 to 19/09/06 on all locations"

    I have to check whether this text is displayed or not. But the Time period is change every time. So that I want to use reg. exp.

    I used std. Chk pt. as well as .Exist property.

    1. A=Browser("AAI Dashboard Reports").Page("AAI Dashboard Reports").WebElement("WWW for period 20/08/06_2").Check (CheckPoint("WWW for period 20/08/06_2"))

    2. A=Browser("AAI Dashboard Reports").Page("AAI Dashboard Reports").WebElement("WWW for period 20/08/06_2").Exist

    Then I changed the property innertext value in OR with,

    1. WWW for period [0-9][0-9]/[0-9][0-9]/[0-9][0-9] to [0-9][0-9]/[0-9][0-9]/[0-9][0-9] on all locations

    2. WWW for period (.*) on all locations
    But in both cases the value of A is False.

    Plz. help me to solve this problem.
    Thanks
    Bhushan

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Regular Expression for 20/08/06 to 21/09/06

    A=Browser("AAI Dashboard Reports").Page("AAI Dashboard Reports").WebElement("outerText:=WWW for period.*to.*on all locations").Exist
    Msgbox A
    Msgbox Browser("AAI Dashboard Reports").Page("AAI Dashboard Reports").WebElement("outerText:=WWW for period.*to.*on all locations").GetROPropert("outerText")

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.33%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:59 AM.

Copyright BetaSoft Inc.