SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    May 2003
    Location
    Milford, MA, USA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SilkTest HtmlLink

    Hi,

    I am a beginner in SilkTest(Silk 5.5). I have the following problem. On the browser page, there a HtmlTable and these are the links inside it:

    1st line:
    Edit
    Delete
    Assign

    2nd line:
    Edit
    Assign

    Bottom line
    AddNew

    This is my windows declarations:

    HtmlTable ManagePlanRules2
    ..
    [-] HtmlColumn Actions
    [-] multitag "Actions"
    [ ] "#11"
    [-] HtmlLink Edit1
    [-] multitag "Edit[1]"
    [ ] "#2"
    [ ] "$javascript oPostBack('_ctl0?DGrid?_ ctl2?LinkbuttonEdit','')"
    [-] HtmlLink Delete
    [-] multitag "Delete"
    [ ] "#1"
    [ ] "$javascript oPostBack('_ctl0?DGrid?_ctl2?LinkbuttonDelete','') "
    [-] HtmlLink Assign1
    [-] multitag "Assign[1]"
    [ ] "#3"
    [ ] "$javascript oPostBack('_ctl0?DGrid?_ctl2?LinkbuttonAssign','') "
    [-] HtmlLink Edit2
    [-] multitag "Edit[2]"
    [ ] "#5"
    [ ] "$javascript oPostBack('_ctl0?DGrid?_ctl3?LinkbuttonEdit','')"
    [-] HtmlLink Assign2
    [-] multitag "Assign[2]"
    [ ] "#4"
    [ ] "$javascript oPostBack('_ctl0?DGrid?_ctl3?LinkbuttonAssign','') "
    [-] HtmlLink AddNew
    [-] multitag "AddNew"
    [ ] "#6"
    [ ] "$javascript oPostBack('_ctl0?DGrid?_ctl4?LinkbuttonAddNew','') "

    Edit1 is for line 1 and Edit2 is for line 2, etc etc;
    The problem is, when I am declaring my windows, when the mouse is over 1st Edit link I get Edit1. This is ok. When it is over Delete Link, I get Assign1. This is not ok !
    When is over Assign link, I get Actions, the (HtmlColumn). This is odd, since Actions is not a link, it is just the column name.

    AddNew works fine!

    How can I solve this problem ?, so when I click Delete it deletes , Edit ... edits the page and when I click Assign it takes me to another page.

    Thanks !
    Hmendes

    [This message has been edited by hmendes (edited 05-08-2003).]

  2. #2
    MTF
    MTF is offline
    Junior Member
    Join Date
    Apr 2003
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest HtmlLink

    My guess is that using the Index as a tag is throwing it off. In the Multitag statement get rid of the line that has "#n", the Java reference of the tag and the name in most cases seems to be unique and will provide a much more stable playback.

    Let us know if you need more info and good luck!


    -T

    ------------------

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    Milford, MA, USA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest HtmlLink

    Hi,

    I think there is a problem in the source code of the web application.

    I will rephrase my question:
    How can I make these HtmlLinks to work as they should:
    Edit to be seen as Edit
    Delete to be Delete (now it takes it for Assign)
    Assign to be Assign (now it takes it for Actions which is the column name)

    Thanks

    ------------------


    [This message has been edited by hmendes (edited 05-08-2003).]

  4. #4
    Senior Member
    Join Date
    Oct 2002
    Location
    Calgary, Alberta, Canada
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest HtmlLink

    Do you mean that Silk is naming the tags of each element incorrectly? I have no idea how to correct that. HTML Tables are a weak spot for Silk. I just rename all the tag names to something that makes sense, and I don't worry about the tag contents that Silk generates.

    So the column name is getting the Actions button id when Silk generates the tags.
    [-] HtmlColumn Actions
    [ ] tag "Actions"
    [-] HtmlLink Edit
    [ ] tag "Edit[1]"
    [-] HtmlLink Delete
    [ ] tag "Delete"
    You could change it to read like this:

    [-] HtmlColumn Column1
    [ ] tag "Actions"
    [-] HtmlLink Actions
    [ ] tag "Edit[1]"
    [-] HtmlLink Edit
    [ ] tag "Delete"
    [-] HtmlLink Delete
    [ ] tag "Assign[1]"

    I would also remove the multi-tags so that it reads like this:
    Is this what you mean?
    [-] HtmlColumn Actions
    [ ] tag "Actions"
    [-] HtmlLink Edit
    [ ] tag "Edit[1]"
    [-] HtmlLink Delete
    [ ] tag "Delete"
    [-] HtmlLink Assign
    [ ] tag "Assign[1]"
    [-] HtmlLink Edit
    [ ] tag "Edit[2]"
    [-] HtmlLink Assign
    [ ] tag "Assign[2]"
    [-] HtmlLink AddNew
    [ ] tag "AddNew"




    [This message has been edited by signal_11 (edited 05-08-2003).]
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    --Donald Knuth

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

    Re: SilkTest HtmlLink

    You said you are new to Silk, so if what I'm saying here doesn't make sense, say so in your reply and I'll try to clarify.

    Get a rectangle on your object using RECT in 4Test. I've never called GetRect() on an HtmlLink but I'm fairly certain it would work. If not, call GetRect() on the HtmlText that represents the link. Something like:

    RECT rLocation
    rLocation=MyTable.MyColumn.MyLink.GetRect()

    This will give you the coordinates that Silk THINKS is the location of the link. It will give you the x/y of the upper left corner of the object, followed by the length and width of it. Write the upper left corner coordinates down.

    Then use the menu Record/Window Locations and hover the mouse over the same link and get the actual coordinates of the link. They should be the same. I'm guessing they won't be.

    This isn't your solution, but it will give you a starting point to try to track down why Silk is seeing the various links where they are.

    ------------------

 

 

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 12:25 PM.

Copyright BetaSoft Inc.