SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
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)
    Total Downloaded
    0

    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)
    Total Downloaded
    0

    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
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:35 PM.

Copyright BetaSoft Inc.