SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Apprentice
    Join Date
    Jun 2007
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    qtp descriptive programming line working only once

    I have a line like this

    Browser("name:=Home Page").page("title:=Home Page").WebTable(text:=Review Profiles Scopes Settings Copy Forecast Results").webelement("outerhtml:=<NOBR>Profi les</NOBR>").Click


    This only works first time I open the application then if I see the properties using Object spy and copy the property value of text for webtable again in to this line then only it works (only once) any idea why it is behaving like this.

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    You mean to say webtable text "text:=Review Profiles Scopes Settings Copy Forecast Results" is dynamic and changing everytime?
    Snehal Pailkar

  3. #3
    Apprentice
    Join Date
    Jun 2007
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    no nothing is changing ...I mean to say this works some times I am not able to find when it works..

  4. #4
    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: qtp descriptive programming line working only

    try this
    Browser("name:=Home Page").page("title:=Home Page").WebTable(text:=.*Review.*").webelement("out erhtml:=.*Profiles.*").Click

    If page has many webtables that contains the Review as substring to it's name you can use the full name.
    GauranG Shah
    I don't make the software, Rather I make it better.
    My Blogs:
    All About Automation
    Spell Checker

  5. #5
    Senior Member
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    Add few more properties to WebTable as well as WebElement and see if it works consistently or not.

    If there is value set for HTML ID for webtable and webelement then use it in ur DP statement.
    Snehal Pailkar

  6. #6
    Apprentice
    Join Date
    Jun 2007
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    no have tried all this but nothing is working

  7. #7
    Senior Member
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    How is it possible? You are saying none of the properties are changing and at the same time your statement works sporadically.


    One more try. Record a step to click on webelement without using DP. Use Normal Recording mode and see if it works consistently.
    Snehal Pailkar

  8. #8
    Apprentice
    Join Date
    Jun 2007
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    It just works perfectly fine sometimes and sometimes just stays on the same page ..don't know what is happening.

  9. #9
    Senior Member
    Join Date
    Oct 2006
    Location
    Boston, MA
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: qtp descriptive programming line working only once

    Try this:

    Browser("name:=Home Page").Page("title:=Home Page").WebElement("outerhtml:=<NOBR>Profiles </NOBR>").Click


    Raj.

 

 

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 10.00%
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 05:08 PM.

Copyright BetaSoft Inc.