SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    Jul 2002
    Location
    Chennai
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can we click or do any action on any links that are not exposed?

    I have been working with silk test for the past 2 years. During this tenure we came around some links that get recorded properly but when we try to perform any action on that link silk test throws error saying, "Link not exposed or mouse coordinates out of screen". We are using Silk Test 5.03. Does have any solutions or workarounds.

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

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    mustafa,

    Have you tried setting the agent option OPT_VERIFY_EXPOSED to FALSE. It verifies that windows are exposed (that is, not covered, obscured, or hidden by another window) before interacting with them.

    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

  3. #3
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    I am assuming you have tried the above method and also 'scroll into view' option. If that did n't work you can try this.
    Use set focus on that control and use type keys like 'enter' to click it.

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

  4. #4
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    You should upgrade from 5.03 and use the DOM extension. The automatic scroll into view functionality works better than in 5.03

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  5. #5
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    Why do we want to set the OPT_VERIFY_EXPOSED to FALSE? In testing our Java app, I've encountered some buttons not exposed and the testcase run fails when tries to select the button that it thinks wasn't exposed. The Silk support engineer said to set it TRUE, which it was by default already.

    How do we use the automatic scroll into view functionality?

  6. #6
    Senior Member
    Join Date
    Dec 2001
    Location
    San Jose, CA
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    You can do this:
    1. Load the Html page
    2. Wait for browser ready
    3. Page down to the end of the html page.

    Now, SilkTest will see all your items whether they are exposed or not.

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

  7. #7
    Member
    Join Date
    Sep 2002
    Location
    Chicago, Illinois, USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    we have been using comb of the following two tips in our team, and they have been working well.

    1. setting the agent option OPT_VERIFY_EXPOSED to FALSE
    2. use DoClick()

    By the way, ST55 works better than 503. If possible upgrade ST.

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

  8. #8
    Member
    Join Date
    Sep 2002
    Location
    Rancho Santa Margarita, CA, USA
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    Do exactly what you would normally do if you were to test your app manually. If you have to press the <Page Down> or the <Down Arrow> key or whatever key/key combination to expose the links you wanted to click on, include these actions in your testscript.

    When manually testing, if you can click on those links that are not exposed to you, wow! more power to you (I have not seen this happen before)! But if you can't do this manually, I'm almost sure SilkTest can't also.

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

  9. #9
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    kchan,
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Why do we want to set the OPT_VERIFY_EXPOSED to FALSE? In testing our Java app, I've encountered some buttons not exposed and the testcase run fails when tries to select the button that it thinks wasn't exposed... <HR></BLOCKQUOTE>

    The agent option OPT_VERIFY_EXPOSED when set to TRUE checks before acting on the window. It checks if the window is not covered, partially obscured or logically hidden. What this means is that if any of the following conditions is true SilkTest will not act on the window. But if the agent option is set to false, then SilkTest does not verify the condition of the window to be exposed as stated above. Hence the chances of the event being executed on the window has more probability in the second case. But this is not the best way to go about it.


    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>How do we use the automatic scroll into view functionality?<HR></BLOCKQUOTE>

    Have you checked out the help for ScrollIntoView method ? If not then I recommend that you do that first. A head start; in the help it is mentioned that for the methods Click, DoubleClick, MultiClick, and MoveMouse you do not have to use the ScrollIntoView method, this is only in case your agent option OPT_VERIFY_EXPOSED is set to TRUE but if it is set to false then you will have to use the method to make visible the control which is partially or completely hidden.

    ------------------
    never say die

    [This message has been edited by witchcrop (edited 10-24-2002).]
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

  10. #10
    Junior Member
    Join Date
    Jul 2002
    Location
    Chennai
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can we click or do any action on any links that are not exposed?

    Setting the option OPT_VERIFY_EXPOSED to FALSE works in our application. Thanks for the suggestion.

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

 

 

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 05:29 AM.

Copyright BetaSoft Inc.