SPONSORS:






User Tag List

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

    Click link named from previous output value?

    My application requires me to click on a link that is dymanic, based upon text returned to the client in a previous step.

    For example, after logging in, I am presented with an "account number" on the screen.

    I want to save that account number as an output value.

    Then, in a future step, I'd like to click on a link on the page that has the identical "account number". The link on the screen is visually identical to the "account number" saved in the earlier output value.

    I know how to save the output value, but I'm unclear how to turn a link into a parameter that calls the output value.

    Thank you for your help!

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

    Re: Click link named from previous output value?

    Use descriptive programming to build the link dynamically.
    <font class="small">Code:</font><hr /><pre>
    Set LinkDesc = Description.Create()
    LinkDesc("text").Value = (put the account nummber you captured in here)
    LinkDesc("html tag").Value = "A"

    If Browser("").Page().Link(LinkDesc).Exist(5) Then
    Browser("").Page().Link(LinkDesc).Click
    Else
    Reporter.ReportEvent micDone, "Link Not Found", ""
    End If

    Set LinkDesc = Nothing
    </pre><hr />

  3. #3
    Junior Member
    Join Date
    Nov 2007
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Click link named from previous output value?

    Thank you. My apologies if I'm not understanding correctly.

    I'm trying not to hardcode any values, but saving a value with an outputvalue to the datasheet, then passing or calling that value later on.

    I'm unclear how to make a link a dynamic value with every script run.

    I could also use a navigate statement to call the actual URL (which has the account number as an argument in the URL) but I'm also unclear how to parameterize only a portion of the URL.

    Thank you.

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

    Re: Click link named from previous output value?

    Massive oversight on my part... I got this working by simply double clicking the object properties of the "link" and changing the constant to a parameter (pointing to the earlier output value).

    Thank you for your help.

 

 

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 12:50 AM.

Copyright BetaSoft Inc.