SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9

Thread: Ignore HtmlList

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

    Ignore HtmlList

    Hi,

    In a Window, I have some HtmlLinks under the HtmlList.
    I want to ignore HtmlList and want to directly perform actions on the HtmlLinks. Can anybody suggest me the solution?

    Thanks,
    Venkat.

  2. #2
    Member
    Join Date
    Sep 2006
    Posts
    204
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ignore HtmlList

    Use the ambiguos tag to refer the object in HtmlLink.

    Eg. [HtmlLink]<tagname of HtmlLink>/[HtmlList]<tagname of HtmlList>/..

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ignore HtmlList

    In Silk, under Options->Extension menu item, find the browser extension you are using and click on the Extensions button next to it.

    From the DOM extensions dialog box, set the borderless table level to 0.00 which will identify all the objects in your AUT as a flat hierarchy. THis will detach the links from the HTMLList object hierarchy and allow you to interact with them independent of the HTMLList.
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

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

    Re: Ignore HtmlList

    Shree,

    I am working on a web application, and I'd like to flatten the GUI declaration hierarchy by ignoring HtmlList class.

    After I changed the settings as you suggested in SilkTest, then I did "Record>Window Declarations", on when I place the mouse over a HtmlLink object, its HtmlList parent still shows in "Record Window Declarations" window.

    Were you able to remove HtmlList class from your declarations? If so, could you please provide more details on how to do it? Thanks a lot!

    GN

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ignore HtmlList

    Hi!!

    You can try doing a class mapping to ignore classes.
    [NOTE: Sometimes you can still see those ignored classes in your declaration bcoz SHOW ALL CLASSES is checked but when you are writing the code you can remove the ignored class from the script & the code will still compile]

    Read more abt "ignore container classes" in SilkTest help.

    Hope this helps...

    2lz

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

    Re: Ignore HtmlList

    Hey, thanks for your suggestion.

    I have no luck so far with "class mapping". I think that is more for your custom classes, I am not sure if you can ignore a standard built in class at all in SilkTest, such as HtmlList by "class mapping".

    I also tried setting the borderless table level to 0.00 in DOM extensions dialog box, but I didn't get a flat view of GUI objects neither, HtmlList was still in there.

    I don't know if I missed out something.

    I guess I am going to contact Borland to find out if it is possible at all to ignore a standard class.

    Thanks.

  7. #7
    Senior Member
    Join Date
    Feb 2006
    Location
    Princeton, NJ
    Posts
    195
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ignore HtmlList

    [ QUOTE ]
    I am working on a web application, and I'd like to flatten the GUI declaration hierarchy by ignoring HtmlList class.


    [/ QUOTE ]
    You can easily hide the complexity of GUI hierarchy and flatten the GUI declaration by removing the ignored containers from declarations and referencing those containers in the tags of the children. Consider window declaration below:
    <font class="small">Code:</font><hr /><pre> [-] window BrowserChild WebPage
    [ ] tag "My web page"
    [ ] parent Browser
    [ ]
    [-] HtmlList LinksList
    [ ] tag "My links"
    [+] HtmlLink MyLink1
    [ ] tag"#1"
    [+] HtmlLink MyLink2
    [ ] tag"#2"
    [-] HtmlLink MyLink3
    [ ] tag"#3"
    </pre><hr />
    Then in your script you will have: WebPage.LinksList.MyLink1.Click()

    Now look how you could simplify your declaration:
    <font class="small">Code:</font><hr /><pre>
    [-] window BrowserChild WebPage
    [ ] tag "My web page"
    [ ] parent Browser
    [ ]
    [-] HtmlLink MyLink1
    [ ] tag"[HtmlList]My links/#1"
    [-] HtmlLink MyLink2
    [ ] tag"[HtmlList]My links/#2"
    [-] HtmlLink MyLink3
    [ ] tag"[HtmlList]My links/#3"
    </pre><hr />
    Then in your script you will have: WebPage.MyLink1.Click()
    Hope you got an idea.

  8. #8
    Senior Member
    Join Date
    Apr 2008
    Location
    Hyderabad
    Posts
    339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ignore HtmlList

    Hello April20,
    Yes, I tried your idea.
    it's great &amp; working very fine.
    Regards,
    Krishna Chaitanya

    =====================
    Try and fail, but don't fail to try
    =====================

  9. #9
    Junior Member
    Join Date
    Aug 2002
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ignore HtmlList

    April20,

    Thanks so much for such a detailed reply.

    Maybe I did not make it clear, what I really wanted is to generate declarations with HtmlList removed in the first place. For example, if I use the statement:

    WebPage.GenerateDecl()

    I want to generate a flattned hierarchy without HtmlList in it, so that I don't need to manuallly edit every place where there is a HtmlList.

    I suspect SilkTest allows us to do that. Thanks!

 

 

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 8.33%
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 05:53 PM.

Copyright BetaSoft Inc.