SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HtmlLink is missed by the click...

    I'm seeing an oddity with HtmlLinks. Silk is seeing the link as HtmlText and the Link is actually seen as the text above the link.

    Nothing unusual about the links. They are both standard links in a paragraph, linking to another page on the local website. The one thing they both have in common is that they are the first piece of "text" on a new line; meaning aligned left. The paragraphs are inside HtmlTables, but there are about a dozen other links in the same table(s) that are seen and manipulated beautifully.

    What's up with these two links? Has anyone seen this behavior before?

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

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Sunyyvale CA USA
    Posts
    422
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HtmlLink is missed by the click...

    Well I have not see this behaviour earlier. Whats the extension u r using?

    ------------------
    Sree
    Sree

  3. #3
    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: HtmlLink is missed by the click...

    I'm using the IE5.5 DOM extension right now. This is a really strange behavior.



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

  4. #4
    Junior Member
    Join Date
    Apr 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HtmlLink is missed by the click...

    I have seen this before. When the links were inside a table just as yours are. For some reason the first links are never recognized properly. I have a work around for this.

    I recorded the mouse click rather than trying to record the click on the text link. I then placed these coordinates into the text file for the testcase. I usually use text files to store the my testcases. I then have Silk parse through these files executing each step as a separate unit.

    Try recording the actual mouse click and see if this works.

    This workaround worked well, provided you write your tests in this fashion.



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

  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: HtmlLink is missed by the click...

    That may be my only option so long as the links don't move...

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

  6. #6
    Member
    Join Date
    Aug 2002
    Location
    Raleigh
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HtmlLink is missed by the click...

    I had a similar problem where it seemed that when i tried to click on a link, it would click a little above it. Strange... I just set the cursor position to the text preceding it then tabbed over and hit enter. Hope this helps...

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

  7. #7
    Senior Member
    Join Date
    Oct 2001
    Location
    Cambridge, MA, USA
    Posts
    263
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HtmlLink is missed by the click...

    Will using the position parameters for the Click() method work?
    link.Click ( [iButton, iXpos, iYpos] )

    We needed to do this for a radiobutton that was giving us trouble. The determination of the positions was empirically devined.

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

  8. #8
    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: HtmlLink is missed by the click...

    I have multiple scripts which must manipulate this link. On most of them, I will be able to utilize some of the suggestions mentioned here. However, I recently wrote a LinkWalker script which walks all the links on the site, and the script has no means (right now) of determining what link it is manipulating, so the script is currently clicking above the link.

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

  9. #9
    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: HtmlLink is missed by the click...

    This is logged with the great and exalted support team. We'll see where they take it.

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

  10. #10
    Member
    Join Date
    Dec 2001
    Location
    Billings, MT, USA
    Posts
    46
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HtmlLink is missed by the click...

    another little work around is to parse the link from the source code (or use a fancy function if the window link object is recognized) ie.:

    lwBrowserPage = BrowserPage.GetChildren()
    for each wObj in lwBrowserPage
    if(HtmlLink == wObj.GetClass())
    sLink = wObj.GetClass()
    if(sLink == "My Expected Page")
    browser.loadpage(sLink)
    bFound = TRUE

    if(!bFound)
    lsPageSource = BrowserPage.GetPageSource()
    for each sLine in lsPageSource
    //parse line looking for your link (pseudo code)
    if("My Link Found")
    browser.loadpage(sLink)
    break



    ------------------
    Clay Givens
    Lead QA Automation Test Engineer
    HotJobs, a Yahoo! service.
    406 W. 31st 9th Floor
    New York, NY 10001
    Clay Givens
    Yahoo! QA Engineer

 

 
Page 1 of 2 12 LastLast

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:47 AM.

Copyright BetaSoft Inc.