SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to click on an object on dialog box on Win2k?

    Hi

    I am using winRunner 8.2 and i am automating a web application.

    In my web application i am automating a scenario where i am trying to open an excel file which is attached in the application.

    When i click that attachment it opens a dialog box which displays "Open", "Save" or "Cancel" button for Windows XP
    and when i am using button_press("Open") command it opens the file successfully

    But when i tried the above mentioned scenario in Win2k operating System, it opens a dialog box which displays "Open", "Save", "Cancel" and "More Info" button
    but when i am using button_press("Open") command it does not click on the open button..It just point the mouse cursor on that button.

    I also tried by activating the window and then clicking on the button but it did not work.

    I tried obj_set_focus("open"), it sets the focus on the Open button but it does not press the button using button_press("Open") command

    Button only gets active while pressing "Alt" button but i do not want to use hot keys [img]/images/graemlins/frown.gif[/img].

    Can anybody tell me how to click on that "Open" button? OR Does anybody have an alternative solution for the above problem?

    Please help!

    Thanks
    Thanks,
    - ketan.

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Location
    Nashville, TN, USA
    Posts
    713
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on an object on dialog box on Win2k?

    I'm assuming the objects are being recognized properly since WR is moving the mouse over the proper button. It seems the click just isn't being received. Instead of 'button_press', try using 'obj_click'.
    Boyd Patterson
    Patterson Consulting, LLC
    www.patterson-consulting.net

    [i]Creator of Test Design Studio - Powerful IDE for QuickTest Pro[i]

  3. #3
    Senior Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on an object on dialog box on Win2k?

    Yes Patterson, you are right as it is working fine and clicking properly in XP. Only click is just isn't being received.

    As you said to try "Obj_click", do you mean "obj_click_on_text"?
    Thanks,
    - ketan.

  4. #4
    SQA Knight
    Join Date
    Jun 2002
    Location
    Cupertino, CA, USA
    Posts
    2,164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on an object on dialog box on Win2k?

    I think Boyd meant obj_mouse_click .

    You can also try a combination of:

    button_press("Open");
    click("Left");

  5. #5
    Senior Member
    Join Date
    Dec 2004
    Location
    Pune
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on an object on dialog box on Win2k?

    Well i tried obj_click_on_text and it worked.

    Thanks bpolitzer and patterson
    Thanks,
    - ketan.

 

 

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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:15 AM.

Copyright BetaSoft Inc.