SPONSORS:






User Tag List

Results 1 to 2 of 2

Thread: Stuck

  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Stuck

    I have been looking at this code and I just cannot see how to fit the pieces together. Was wondering if someone can put me on the right track of solving it. What I want to do is click on the 4th button on a page that has the strings "pagename=addtolist" in the url. IF there are not 4 items on the list then click the 1st one. I never know how many items will be on a particular page at any given time so I need to run through it. Eventually I will be passing a variable to change which one I want.

    [-] void AddtoList (LIST OF STRING lls)
    [ ] int i
    [ ] int iCount = 1
    [-] for i = 1 to 20
    [-] do
    [ ] STRING sAddtoList = "pagename=addtolist"
    [ ] sMyString = BrowserPage.HtmlImage ("index[{i}]").GetLocation()
    [-] if (StrPos(sAddtoList, sMyString) !=0) && iCount==4
    [ ] BrowserPage.HtmlImage("index[{i}]").Click()
    [ ]
    [-] if (StrPos(sAddtoList, sMyString) !=0) && iCount<4
    [ ] BrowserPage.HtmlImage ("index[{i}]")
    [ ] STRING sHeading="Electronics"
    [ ] CaptionErrorTrap (lls, sHeading)
    [ ] iCount++

    Thanks for any input

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Stuck

    Would the tag of the object really be "index[{i}]" or would it be "#{i}" ? Just a WAG.
    Tom

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 07:38 AM.

Copyright BetaSoft Inc.