SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DP operation on button

    Hi,
    Beginner in the QTP.
    I'm automating the web application.
    In this i have web buttons in all the pages.
    I have to click only one button in all the pages.

    I tried DP properties collection method.
    Now i don't know how to make QTP to click the particular button.

    example.
    I have submit and cancel web button in one of page. name is different other properties are same.
    I want to click on submit button.
    How can i do this?
    my properties collection for the above will be like below

    set btn = Description.Create()
    btn("html tag")="INPUT"
    btn("type")="button"

  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: DP operation on button

    Look at below link

    http://knowledgeinbox.com/articles/q...e-programming/

    And read the introduction part

  3. #3
    Junior Member
    Join Date
    May 2010
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP operation on button

    i have gone thro' the link.
    You have performed the operation on all of the similar objects.
    Whereas i want to click on one particular object.

  4. #4
    Moderator
    Join Date
    Jan 2007
    Location
    Pittsburgh, PA
    Posts
    2,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP operation on button

    Remove for loop from Tarun's example and use name property along with appropriate index to click on any object/button.

  5. #5
    Junior Member
    Join Date
    May 2010
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP operation on button

    Are you saying use like below
    set btn = Description.Create()
    btn("html tag")="INPUT"
    btn("type")="button"
    btn("index")="1"

    If i use name or index in the properties then i cannot use this description in the next page web button, right?

  6. #6
    Junior Member
    Join Date
    Aug 2009
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP operation on button

    set btn = Description.Create()
    btn("html tag")="INPUT"
    btn("type")="button"
    btn("name")="Submit"

    Try with this

  7. #7
    Junior Member
    Join Date
    May 2010
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP operation on button

    hi,
    As i said earlier
    in every pages we are having web button.
    if i use the name property then this cannot be used i the next page, isn't it?

  8. #8
    Junior Member
    Join Date
    Aug 2009
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP operation on button

    you can use it if you get the Submit button in next page also

 

 

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.71%
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 04:00 AM.

Copyright BetaSoft Inc.