SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4

Thread: Run time error

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Location
    chennai
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Run time error

    Hi all,
    When i run the below script using winrunner 7.5,first time there was no problem.second time an error occurs.its displayed as "winrunner cannot find the object "start"what is the problem behind it .


    set_window("Shell_TrayWnd", 1);
    button_press("Start");

    Regards,
    K.rekha
    rekha

  2. #2
    Senior Member
    Join Date
    Mar 2004
    Location
    UK
    Posts
    161
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run time error

    Hello,

    Ur subject seems to mislead...Have u gone thro the wr tutorials and other guides???..if not pls do that b4 posting a query...if u have done all then dig in the GUI map and c whether the object is listed there or not..if it does then luk for the phy prop of the object and compare the same with the GUI Spy...hope this helps...

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Location
    UK
    Posts
    161
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run time error

    U seem to have the same issue as the one posted by Selvi..in any case u can make use of the sample code gn below..

    shell = "{class: window, label: \"<No title>\", MSW_class: Shell_TrayWnd}";
    str = "{class: push_button, label: start}";

    if (win_exists(shell,4) == E_OK)
    {
    set_window (shell, 2);
    report_msg("Tracked the " & shell & "window");
    if (obj_exists(str,3) == E_OK)
    {
    report_msg("Tracked the " & str & "object");
    button_press (str);
    set_window ("BaseBar", 7);
    toolbar_select_item ("ToolbarWindow32_1", "Programs;Internet Explorer");
    }
    else
    {
    report_msg("Failed to track the start object");
    }
    }
    else
    {
    report_msg("Failed to track the tray area");
    }

    Reach me u r still not able to resolve the issue...

  4. #4
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run time error

    That's a lot of excess code that can easily be replaced by:

    invoke_application();
    or
    web_browser_invoke();

    For the benefit of your customer and yourselves, both of you might want to consider getting formal training in this tool. Additionally, it may pay to do the tutorial. Your struggles will continue as long as you avoid the path of tool-learning correctness. Your choice at this point - right? Do you continue to add to the growing bad WR taste left by many so-called WR automators - or do you do the correct and ethical thing here?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:41 AM.

Copyright BetaSoft Inc.