SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2000
    Location
    Ulm, DE
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrolling HtmlLink into view before Clinking on it in a Frameset

    Hello,

    I'm testing a page with nested tables. I thought Silkt would automatically scroll any objects on a page (frame) into view before trying to perform an action on them.

    In my case, I need to Click on a Link at the bottom of the html page (frame), and when I try to click on it, Silk throws an exception that the coordinates are out of screen.

    How do I get Silk (5.0.3.2) to scroll the Link into view before clicking on it?

    I had these options set:
    OPT_VERIFY_EXPOSED, FALSE
    OPT_VERIFY_COORD, FALSE

    I tried setting OPT_VERIFY_COORD, TRUE
    but it didn't work.

    Any suggestions?

    Thanks

    ------------------
    Silverter - A profi was once a beginner
    Silverter - A guru was once a beginner

  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)

    Re: Scrolling HtmlLink into view before Clinking on it in a Frameset

    Assuming Agent.SetOption (OPT_SCROLL_INTO_VIEW, TRUE)is in place, if Silk still isn't scrolling your object into view, you might try setting focus somewhere on that frame (not on a button) and hitting the spacebar via TypeKeys. In IE, this will send a "one page down" command to the scrollbar. I'm not certain if Netscape behaves the same way.

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    Tampa, FL USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling HtmlLink into view before Clinking on it in a Frameset

    I have found (using Netscape 4.7 and Silk 5.0.3.2) that even though the options you mentioned are set, I still had to perform a ScrollIntoView() before the object could be acted upon. For example:
    MyPage.AAOListTable.ScrollIntoView () MyPage.AAOListTable.OrderCol.HtmlPushButton(sOrder Num).Click ()

    Once I made the call on the panel, I did not have to repeat the call on that particular panel. What I found that worked for me was to do the ScrollIntoView() just after setting the page active.


    The scrollintoview did not work on IE so when I had to do cross-browser testing, I had to add code to ignore the resulting error produced when using IE.



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

  4. #4
    Pal
    Pal is offline
    Apprentice
    Join Date
    Jan 2001
    Location
    Levittown, NY,USA
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling HtmlLink into view before Clinking on it in a Frameset

    Hi
    You can try with this typekeys:
    MyHomePage.TypeKeys("<Ctrl-End>")
    MyHomePage.TypeKeys("<Ctrl-Home>").
    Ctrl-End and Ctrl-Home between " ".
    Hope it will help.
    Thank you,
    Pal

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


    [This message has been edited by Pal (edited 06-06-2001).]

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling HtmlLink into view before Clinking on it in a Frameset

    Easy solution:

    control.SetFocus()

    will automatically focus on the control you want, no scrolling.

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

  6. #6
    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: Scrolling HtmlLink into view before Clinking on it in a Frameset

    GodKnows,

    You find that this works consistently? I've seen exceptions thrown informing me that the control cannot be found, and this is ususally because it is not scrolled into view. At other times, I can watch the applicaton being manipulated by the test and when a SetFocus() call is made the application automatically scrolls it into view.



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

  7. #7
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling HtmlLink into view before Clinking on it in a Frameset

    SetFocus() should work 99.9% as usual.

    The brute force way is to use GetChildren and parse the result(use string cast in comparison cuz this function returns list of window).

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

  8. #8
    Member
    Join Date
    Aug 2000
    Location
    Hyderabad,AP,India
    Posts
    80
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scrolling HtmlLink into view before Clinking on it in a Frameset

    I too found similar problems

    When the page has got horizontal scroll bar it clicks on the scroll bar and get skipped to the other line.....

    so what I do is BrowserPage.TypeKeys ("<PgDn>")

    and then click.

    it works...

    Thanks
    Baseer

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


    [This message has been edited by Baseer (edited 06-10-2001).]

 

 

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 07:15 PM.

Copyright BetaSoft Inc.