SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    AG
    AG is offline
    Junior Member
    Join Date
    Nov 2001
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape problem

    User A G (subscription@indiainfo.com.nospam) posted:

    Hello,

    I have a quick and dirty code for netscape

    if(Netscape.BrowserChild("APS").BrowserChild("SR") .HtmlImage("javascript:ValidateAndSubmit()|#1|$jav ascript:ValidateAndSubmit()").Exists()
    == true)
    Netscape.BrowserChild("APS").BrowserChild("SR").Ht mlImage("javascript:ValidateAndSubmit()|#1|$javasc ript:ValidateAndSubmit()").Click()

    this work when i am debugging. ie silk clicks on the image in debug
    mode. but when i run the script, silk cannot find the image. and stops.

    pl. help.

    ~A.
    --------------------------------------------- http://mail.indiainfo.com
    India's first ISO certified portal
    Check world time at http://time.indiainfo.com

    Post message: silktest@yahoogroups.com
    Subscribe: silktest-subscribe@yahoogroups.com
    Unsubscribe: silktest-unsubscribe@yahoogroups.com
    List owner: silktest-owner@yahoogroups.com
    URL to this page: http://groups.yahoo.com/group/silktest


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape problem

    Generally, when I hear the phrase, "it works in debug but not at runtime," I think it's a timing issue. People doing debugging run slower than SilkTest on its own.

    You may want to use the optional parameter for the Exists method to slow things down. If you specify a number in there, SilkTest will wait up to that number of seconds to see if the object exists. So you may want to throw a 5 or a 10 in there and see what happens.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  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: Netscape problem

    AG - Maybe you'd better be more specific -- what do you mean the script just "stops"? Do you have no code executing after that? Does the Click happen, or not? Do you get an error message, and if so, what? If you're getting an error message, for instance, you may need to play with Agent.SetOption(). Depending, of course, on the error message.

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


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

  4. #4
    AG
    AG is offline
    Junior Member
    Join Date
    Nov 2001
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape problem

    The script stops means...
    The click doesnt occur. It tries to execute the next line. But doesnt find the combo, since the click has not occured and the next page is not seen.

    Main problem is that the click doesnt occur in netscape 4, but occurs in IE5. Also the click doesnt occur while running, but occurs during debugging.

    Running Debugging

    NS4 No Click Click occurs
    IE5 Click occurs Click occurs

    ~A.

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

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

    Re: Netscape problem

    Is the Click perhaps not occurring because the system hasn't finished doing the underlying work necessitated by the line or lines of scripting **before** the Click? If so, in addition to the Sleep(n) that has already been suggested (and we all hate Sleep statements but sometimes with browser testing, they are necessary), you might try a BrowserPage.FlushCache( ) before the Click. This is all getting kludgy but you can also try a PressMouse/ReleaseMouse or something like that. The fact that you've isolated it to the Click not occurring means that you have the hard part behind you! Now you just have to hack it to death.
    --AG

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

  6. #6
    Junior Member
    Join Date
    Aug 2001
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape problem

    Does your page have a lot of javascript? If yes, you might want "enable javascript always on", however, turn on this option means you cannot get the href of links or images, Then you might need another user option DOMAnchor, which would give you the href.

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

 

 

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 06:01 AM.

Copyright BetaSoft Inc.