SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BUG: Javascript cause silk to lose it mind

    Silk 5.032/win2k. ALl useless agent verification are turned off.

    Has any1 experimented with javascript calls using silk?

    There are 2 ways you can do this.

    1)Directly loading "javascript:[code here]" in the browser.
    Ex: Browser.LoadPage("javascript:alert(document.name)" )
    Browser.LoadPage("javascript:document.write(docume nt.name)")

    2)using BrowserPage.ExecLine('') or BrowserPage.ExecScript({'',''...})


    After I use them to do a select statement or call a function on the web page, silk will definitely not work properly. The error I am seeing is that silk will hang on WaitForReady() if you call it and also silk will not be able to perform simple tasks like clikcing a button. Calling the javascript by itself it's fine, but when you integrate it with other operations silk will go kaput.




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

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

    Re: BUG: Javascript cause silk to lose it mind

    I found out that the agent will not respond after I run a javascript. Is there a way to reset a connection to the agent?

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

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

    Re: BUG: Javascript cause silk to lose it mind

    I played with this a little bit more and I came up with a solution. Since the agent wasn't responding I tried the Agent.FlushEvents() calls and it worked wonderfully so far. I am not sure if there are any side effects.

    ------------------
    With more testing I conclude that my previous solution doesn't always work. It only works if javascript is called once.

    [This message has been edited by GodKnows (edited 01-30-2002).]

 

 

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 09:25 AM.

Copyright BetaSoft Inc.