SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to select Menu items in a Dropdown Menu

    Hi,

    I'm having probelms selecting a menu item in a dropdown menu.

    I got QTP to open the drop down menu from the toolbar using the ShowDropdown Method but then when I try selecting one of the other menu options, i get an error saying that the object does not exist.

    Please please someone help .....

    Cheers
    Shweta
    Shweta Rao
    Systems Analyst
    United Kingdom

  2. #2
    Junior Member
    Join Date
    Jul 2005
    Location
    Bangalore
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to select Menu items in a Dropdown Menu

    HI Shweta,
    The Error is That the item what you want select is not there in the List or the Drop Down.. Try to Give the Values which are present in the Drop Down, even a scape or case change will lead to error..
    Are you using record & play back or else Keyword method?

    Cheers,
    Jeevs
    The Only thing which is permanent is Change..

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to select Menu items in a Dropdown Menu

    Hi,

    Please post the code.

    Thanks,
    Wasim

  4. #4
    Junior Member
    Join Date
    Jan 2004
    Location
    UK
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to select Menu items in a Dropdown Menu

    Hi,

    Thanks for the reply. The application I'm trying to test is a windows application with Custom Controls. I'm using the expert view to code my test scripts.

    The following is the code I had written to to select one of the other options in the drop down menu (the menu has 4 options - 1. New Item 2. New Currency 3. New Voucher 4. New Benefit). The last selection made is the one which is visbile while the other are hidden until the down arrow attached to the menu option is pressed.

    Window("Supplier Item Maintenance").WinToolbar("SupplItem ToolBar").ShowDropdown "New Item"
    Window("Supplier Item Maintenance").WinToolbar("SupplItem ToolBar").Press "New Currency"

    Please Please help ....

    Cheers
    Shweta
    Shweta Rao
    Systems Analyst
    United Kingdom

  5. #5
    Junior Member
    Join Date
    Apr 2004
    Location
    London
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to select Menu items in a Dropdown Menu

    Hi Shweta,

    Gud to c u in this fourm.Earlier I met you in TestPartner Forum.

    I had the same problem earlier and i sorted it out using KeyBoard Events.
    Can anybody tell me if it is the right way to use or not?

    Window("Win").Object("MenuBar").Type micAltDwn + "fo" + micAltUp

    It is working fine for me now.

    Please let me know if it working or not.

    Thanks,
    Kiran
    UK
    Best Wishes,
    Kiran

  6. #6
    Member
    Join Date
    Jun 2004
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to select Menu items in a Dropdown Menu

    I have also encountered a similar problem, it is a cascading menu by javascript on page, you need go to the last level to click one function, but quicktest can't record the selection procedure, so when you playback, it can't click that function you recorded, i try to add java add-ins to QTP8.2, but the problem is still existed, do you have any solution for this situation? thanks!

  7. #7
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to select Menu items in a Dropdown Menu

    Hi,

    Try

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Window(&quot;Supplier Item Maintenance&quot.WinToolbar(&quot;SupplItem ToolBar&quot.Type &quot;N&quot;

    OR

    Window(&quot;Supplier Item Maintenance&quot.WinToolbar(&quot;SupplItem ToolBar&quot.micN</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Thanks,
    Wasim

 

 

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 9.38%
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 03:54 AM.

Copyright BetaSoft Inc.