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 2003
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    htmllists question

    I have an application testing the result screen. The result screen returns like this:

    your items are:

    * item1
    * item2
    * item3

    * item4
    * item5

    the html code is like:
    your items are:
    <ul>
    <li>item1</li>
    <li>item2</li>
    <li>item3</li>
    </ul>
    <ul>
    <li>item4</li>
    <li>item5</li>
    </ul>

    naturally, the Silktest refers them as two Htmllists.
    However, for my test, I need to treat them as one list. Since I don't know where space can occur (eg: can be between item2 and item3, or no-exist at all), I have difficult time to get the 2nd list (it is identify from item3 from example). Is there a way to do it?

    thanks,
    Jerry

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: htmllists question

    Would something like this do what you want?

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> [ ] list of string ls1 = MyList.GetContents()
    [ ] list of string ls2 = ContinuedList.GetContents()
    [ ] string s
    [ ]
    [-] for each s in ls2
    [ ]
    [ ] ListAppend(ls1, s)
    </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

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

    Re: htmllists question

    thank you for reply. That's the way I tried.

    my problem is that I don't know where the gap appears, and silktest does something likes this

    [-] HtmlList Fruits
    [ ] tag "Fruits"
    [-] HtmlList Orange
    [ ] tag "Orange"

    For list like this:

    Fruits
    * Kiwi
    * Banana
    * Orange

    * Apple
    * Pinapple


    Because the way it tags 2nd list related to 'Orange' keyword this will fail

    Fruits
    * Kiwi
    * Banana

    * Apple
    * Pinapple

    but if I make
    [-] HtmlList Fruits
    [ ] tag "Fruits"
    [-] HtmlList Orange
    [ ] tag "*"

    then I can't get the second list.
    is any way to tag it correctly?

    thanks

  4. #4
    Member
    Join Date
    Oct 2003
    Location
    El Granada, CA
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: htmllists question

    Try using the index for the second list...
    HtmlList Fruit
    tag "Fruit"
    HtmlList Fruit2
    tag "#2"

    then do the listappend as indicated above.
    Sean McCabe

 

 

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 11:48 PM.

Copyright BetaSoft Inc.