SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3

Thread: Regular Exp Obj

  1. #1
    Senior Member
    Join Date
    Oct 2003
    Location
    Atlanta
    Posts
    176
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Regular Exp Obj

    I need to create a description object of webelements whose innertext starts with '*', i followed the following code, but i wasn't successful.


    Set objWEDesc = Description.Create()
    objWEDesc("micclass").Value = "WebElement"
    objWEDesc("innertext").RegularExpression = TRUE
    objWEDesc("innertext").Value = "\*.*"


    set objWebElementCol = Browser("Consumer").Page("Con Apply Online Personal Info").ChildObjects(objWEDesc)
    msgbox objWebElementCol.Count


    Eg. of webelements are *First Name, *Last Name...etc
    Cheers,
    Prasanna -

  2. #2
    Member
    Join Date
    Jul 2004
    Location
    UK
    Posts
    201
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regular Exp Obj

    Hi

    How about

    Value="\*{a-z)+"
    Malleswari.

  3. #3
    Senior Member
    Join Date
    Oct 2003
    Location
    Atlanta
    Posts
    176
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regular Exp Obj

    I hope QTP doesn't support for Reg Exp while using desc Object !

    eg..

    Set oDesc = Description.Create()
    oDesc("micclass").Value = "WebElement"
    'oDesc("innertext").Value = ".*"

    set objCol = Browser("Google").Page("Google").ChildObjects(oDes c)
    msgbox objCol.count


    Anyway i have raised MI SR, looking for reply..
    Cheers,
    Prasanna -

 

 

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 11.54%
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 09:21 AM.

Copyright BetaSoft Inc.