SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Apprentice
    Join Date
    Jul 2009
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Discriptive Programming Issues

    Object Identification Issus in DP
    Using Object Spy

    Set oBrowser = Description.Create
    oBrowser ("micclass").value="Browser"
    oBrowser ("name").value= "MBD Alchemie :: Registration"

    Set oPage = Description.create
    oPage ("micclass").value="Page"
    oPage ("title").value= "MBD Alchemie :: Registration"

    Set WTH=Description.Create 'WebTable: Home
    WTH("html tag").Value="TABLE"
    WTH("name").Value="logo"

    Set WTP=Description.Create 'WebTable: Parent Registration
    WTP("html tag").Value="TABLE"
    WTP("name").Value="ctl00$ContentPlaceHolder1$txt_l og"

    Set WTPP=Description.Create 'WebTable: Parent Registration
    WTPP("html tag").Value="TABLE"
    WTPP("column names").Value="Parent Registration"
    WTPP("name").Value="ctl00$ContentPlaceHolder1$txt_ log"

    Set WebEdit = Description.create
    WebEdit("name").value= "ctl00_ContentPlaceHolder1_txt_log"
    WebEdit("htmlid").value="ctl00_ContentPlaceHolder1 _txt_log"
    WebEdit("html tag").value= "INPUT"
    WebEdit("name").RegularExpression = False


    Browser(oBrowse).Page(oPage.Webtable(WTH).WebTable (WTP).WebTable(WTPP).WebEdit(WebEdit).set "Diwan"

    It display an error message about Object identification and General Run error.



    If I record same thing it display code like this:


    Browser("MBD Alchemie::Mentor Registrat").Page("MBD Alchemie::Mentor Registrat").WebEdit("ctl00$ContentPlaceHolder1$Txt L").Set "Diwan"

    Browser("MBD Alchemie::Mentor Registrat").Page("MBD Alchemie::Mentor Registrat").WebEdit("ctl00$ContentPlaceHolder1$Txt P").SetSecure "4a5db1dbe8dbf252c2659f79e9673c5be74eed9ba81c"

    I have my Web Site Registrion page URL Below:
    http://mbdalchemie.com/Mentor/Mentor_Reg.aspx

    If any body can help me how to write a Descriptive Programming for my web site registration page, I would be very helpfull to u, Thanks in Advance.
    Attached Images Attached Images

  2. #2
    Advanced Member
    Join Date
    Feb 2008
    Location
    Ahmedabad, India
    Posts
    550
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    haven't tested.. but try out this.. it might work

    Browser("title:=.*MBD Alchemie.*").Page("title:=.*MBD Alchemie.*").WebEdit("name:=ctl00_ContentPlaceHold er1_txt_log").set "Diwan"
    GauranG Shah
    I don't make the software, Rather I make it better.
    My Blogs:
    All About Automation
    Spell Checker

  3. #3
    Apprentice
    Join Date
    Jul 2009
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    The test run cannot continue due to an unrecoverable error.

    Cannot identify the object "[ WebEdit ]" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application.

    I have tried it but it also doesn't work.

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    Hi,

    The following code is incorrect:
    Set WebEdit = Description.create
    WebEdit("name").value= "ctl00_ContentPlaceHolder1_txt_log"
    WebEdit("htmlid").value="ctl00_ContentPlaceHolder1 _txt_log"
    WebEdit("html tag").value= "INPUT"
    WebEdit("name").RegularExpression = False

    1. You cannot giv the object name as "WebEdit" b'cas it is a class name like "Link"

    2. How will QTP interpret WebEdit(WebEdit).set "Diwan"

    Check the help in QTP for DP

  5. #5
    Advanced Member
    Join Date
    Feb 2008
    Location
    Ahmedabad, India
    Posts
    550
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    that's coz the name for the webedit you write down in the question is different from what appears in screenshot
    GauranG Shah
    I don't make the software, Rather I make it better.
    My Blogs:
    All About Automation
    Spell Checker

  6. #6
    Senior Member
    Join Date
    May 2008
    Posts
    652
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    Hai friend,

    Try this this may help

    Browser("MBD Alchemie::Mentor Registrat").Page("MBD Alchemie::Mentor Registrat").WebEdit("ctl00\$ContentPlaceHolder1\$T xtL").Set "Diwan"

    Browser("MBD Alchemie::Mentor Registrat").Page("MBD Alchemie::Mentor Registrat").WebEdit("ctl00\$ContentPlaceHolder1\$T xtP").SetSecure "4a5db1dbe8dbf252c2659f79e9673c5be74eed9ba81c"

    Thanks
    The issue what you have listed does not exist, works fine in my machine- stupid comment from the developer

  7. #7
    Apprentice
    Join Date
    Jul 2009
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    Hi Gauran,

    I have tried for both the things : but it doesnot work:

    The following code is incorrect:

    Set WebEdit = Description.create
    WbEt("name").value= "ctl00_ContentPlaceHolder1_txt_log"
    WbEt("htmlid").value="ctl00_ContentPlaceHolder1_tx t_log"
    WbEt("html tag").value= "INPUT"
    WbEt("name").RegularExpression = False

    Then also it display an error message

    I have attached the attachment file also my web site

    http://mbdalchemie.com/Mentor/Mentor_Reg.aspx

    Please try it, if it is possible, thanks in ADvance Ganesh,

    Plz help me about it.

  8. #8
    Senior Member
    Join Date
    May 2008
    Posts
    652
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    Hai friend,

    Open a new test

    copy and paste the below script and run the test. It will work fine.

    systemutil.Run "iexplore.exe","http://mbdalchemie.com/Mentor/Mentor_Reg.aspx"

    Set oWebEdit=Description.Create
    oWebEdit ("micclass").value="WebEdit"
    oWebEdit("name").value="ctl00\$ContentPlaceHolder1 \$TxtLoginId"
    oWebEdit("html tag").value="INPUT"

    Browser("micclass:=Browser").Page("micclass:=Page" ).WebEdit(oWebEdit).Set "Test"

    Thanks
    The issue what you have listed does not exist, works fine in my machine- stupid comment from the developer

  9. #9
    Apprentice
    Join Date
    Jul 2009
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    Hello Friends,

    It is running very wounderfull, Thank you so much for your help, I really thanks full to you, I have tried it a lot but did not get the solutions,

    Now due to your help it is posible, again thanks a lot,

    But also just want to know about: If I just want to write Static DP for it instead of Dynamic, is it possible, cos it takes max of line spacing....

    ctl00\$ContentPlaceHolder1\$TxtPassword"

    also please tell me u have use the regulare exp. for name field , how can we analysis and where we have to use the regular exp. coz u have use 2 regulare exp. it also mid of name property,


    Please Advise

  10. #10
    Senior Member
    Join Date
    May 2008
    Posts
    652
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Discriptive Programming Issues

    Hai friend,

    [ QUOTE ]

    But also just want to know about: If I just want to write Static DP for it instead of Dynamic, is it possible, cos it takes max of line spacing....

    [/ QUOTE ]

    sorry I can't get what you are expecting

    [ QUOTE ]
    ctl00\$ContentPlaceHolder1\$TxtPassword"
    also please tell me u have use the regulare exp. for name field , how can we analysis and where we have to use the regular exp. coz u have use 2 regulare exp. it also mid of name property.

    [/ QUOTE ]

    Well it's simple you have special character for the name field and due to this what happens the object failed to recognize.So I have added slash before the special character.

    Read QTP manual to learn more about regular expression please.

    Thanks
    The issue what you have listed does not exist, works fine in my machine- stupid comment from the developer

 

 
Page 1 of 2 12 LastLast

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 9.68%
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 06:15 AM.

Copyright BetaSoft Inc.