SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Mel
    Mel is offline
    Junior Member
    Join Date
    Mar 2001
    Location
    San Jose, CA, USA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    OnChange javascript not executed using Silk

    Hello,

    I'm testing a small web application using Silk 5.5 and the DOM extension.

    I'm selecting an item in a list and my application, using a JavaScript - OnChange method, should update and populate different fields in the current page. When I do this manually, it is working fine. When I try to play the Silk script to do this (just select the item in the list), the fields are not updated, preventing me to continue my script and a lot of my testing

    I've done the same selecting an item in a combo box; in this case, the fields that needs to be updated are indeed updated.

    Does anybody, more familiar with Web and JavaScript testing, have suggestions for me, where and what to look for?

    Thanks!

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

  2. #2
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Hi,

    I am not quite sure whether the the following solutions help you. So if you want to try this, please take all necessary precautions before you try this.

    I got this from Silk Tech support for our application's problems while working with javascript and netscape. I had no problems whatsoever with the same javascript in IE 5.5 with ST5.5 even before I got this solution from tech support.

    Quote
    ....
    ....
    ....
    The help page has a lot of Javascript as well as a java applet.
    I got recognition for it after selecting in Silktest the
    options>extensions>Netscape> extensions button the 2 options enable use of
    java plugin and Enable javascript always on. I then had to wait for quite a
    bit before the page would get recognised and I think this is due to the
    amount of javascript.
    .....
    SilkTest Engineer
    unquote


    Let me know if this helps. All you have to do is replace netscape with IE and follow the steps

    Cheers
    Srikanth

    ------------------
    Habit 1 - "Be Proactive"
    "The 7 Habits of Highly Effective People" by Stephen R. Covey

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Mel -- You need to download Hotfix 3 from the Segue website, and if necessary add the following line to your extend\domex.ini file in your SilkTest program folder -- under the [Options] subhead:

    UseDocumentEvents=FALSE

    This will fix your problem with HtmlPopupList objects.

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

  4. #4
    Mel
    Mel is offline
    Junior Member
    Join Date
    Mar 2001
    Location
    San Jose, CA, USA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Hello again,

    I've tried the different suggestions here:

    Shrikanth: I'm having these difficulties with IE 5.5. There is no such option as those you mentionned in your reply for IE DOM extension (it's available only for a few Netscape extension i think). My page don't contain much of javascript (just in a few cases those come handy).

    Agroves: The hot fix patch is nice for many issues. Although, even with the extra line added to extend\domex.ini file, it didn't solve my problem. I'm not having trouble with HtmlPopupList objects, my problem is with a regular HtmlList (HtmlSelect).

    If I select an item in the list, which I'm able to do, the rest of my fields don't get updated (they should be if the javascript code was executed).

    Any more thoughts, ideas??
    Thanks everybody for your help.

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

  5. #5
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Hi Mel,

    Thanks for sharing your experiences. I should have done some homework before my first post. Sorry about that. Lesson learnt!!

    I went through the options/browsertype/extensions and found out that only non-DOM browsers have the 'Extension' option enabled.


    Cheers
    Srikanth

    ------------------
    share a joke,
    hum a song,
    pass some special joy along.
    and if someone should come your way,
    who doesn't share your joy,
    THE HELL WITH HIM.

  6. #6
    Junior Member
    Join Date
    May 2001
    Location
    San Francisco ,CA,U.S.
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Hey Mel,
    I have similar problem, when HtmlPushButton click doesn’t trigger OnChange JavaScript event. It doesn’t work with IE55_DOM (hotfix 3) and Win. 98. But it works just fine with IE50_DOM (hotfix 3) and Windows NT .Try changing your environment.
    Please, let me know should you get the problem fixed in any other way, because I need to run script for IE 5.5 and Win. 98 as well.
    Thanks,
    Lev.


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

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

    Re: OnChange javascript not executed using Silk

    in extend\domex.ini, add/(add under)

    [Options]
    UseDocumentEvents=TRUE


    just try it, no guarantee.

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

  8. #8
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Mel - have you tried flushing the cache? From the SilkTest help:
    FlushCache method
    Class
    BrowserChild class
    Action
    Causes SilkTest to reexamine the currently loaded page (BrowserChild) and get any new items as they are generated, such as popup menus. This method is very useful when you are recording dynamic objects that may not initially appear.
    Syntax
    BrowserPage.FlushCache( )
    Example
    BrowserPage.FlushCache( )
    --AG

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

  9. #9
    Mel
    Mel is offline
    Junior Member
    Join Date
    Mar 2001
    Location
    San Jose, CA, USA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Hi,

    Thanks for all your replies to this.
    Although, I've tried all your suggestions, even changing the UseDocumentEvents=TRUE and clearing the cache didn't work.

    I was told to wait for Silk55 SP1, but now that it's here, it didn't help.

    Really, it seems like Silk is preventing the trigger to the execution of the javascript.

    Does anybody knows about any other settings that could help??

    Thanks

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

  10. #10
    Mel
    Mel is offline
    Junior Member
    Join Date
    Mar 2001
    Location
    San Jose, CA, USA
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OnChange javascript not executed using Silk

    Got It!!!

    I should have thought about it earlier

    If I click(), it select the item in the list and trigger the execution of the javascript.

    Now, I suppose I just have to figure out the coordinates of the item I want to select in the list and it should work.

    Thanks again everybody!
    I hope this will help some of you.

    Mel


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

 

 
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 04:20 PM.

Copyright BetaSoft Inc.