SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jan 2002
    Location
    Sutton
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Windows 2000 and Start Menu

    I'm trying to automate an application on a windows 2000 platform. When I click on "Start\programs\application" I'm seeing a very strange behavior with the start menu. The menu is somewhat dynamic and when the submenus appear, silk seems to get confused. I'm sure that many have run into this issue, is there an easy fix??


    ------------------
    JClifford
    JClifford

  2. #2
    Junior Member
    Join Date
    Jan 2002
    Location
    Newark, CA, USA
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows 2000 and Start Menu

    I have just tried below. It is for just quick and easy??

    [+] testcase Test () appstate none
    [ ] Taskbar.SetActive ()
    [ ] Taskbar.Start.Click ()
    [ ]
    [ ] // Selects "Programs"
    [ ] DialogBox("#1").CustomWin("[MenuSite]#1|$0").ToolBar("#1|$0").PushButton("Programs|$504 ").Click ()
    [ ]
    [ ] // Selects "Accessories"
    [ ] DialogBox("#1").CustomWin("[MenuSite]#1|$0").ToolBar("#1|$0").PushButton("Accessories|$ 0").Click ()
    [ ]


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

  3. #3
    Junior Member
    Join Date
    Dec 2001
    Location
    fremont, CA USA
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows 2000 and Start Menu

    Yes, Windows' start menus are goofy to deal with. After you select 'programs', the next popup window becomes Dialog#1 (it has focus) and the start menu stub becomes Dialog#2. It's nice in this way however: you can navigate the window by continuously calling Dialog("#1").Click( sEntryName ) -- of course, replacing the sEntryName with the names of the menu item you want to click next. This works for each subsequent popup, as long as it remains the active dialog. You could of course define the active start menu dialog with tag '[DialogBox]#1" and use that over and over again like so:

    DialogBox dlgActiveStartMenuStub
    tag "~ActiveApp/[DialogBox]#1"

    testcase ClickThroughMenus() appstate none
    dlgActiveStartMenuStub.Click("Programs")
    dlgActiveStartMenuStub.Click("Accessories")
    dlgActiveStartMenuStub.Click("Notepad")

    ... I wrote a method for each OS's start menu that takes a 'path' through the start menu (e.g. "programs\accessories\notepad") and replays it. That works great :-D



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

 

 

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 05:32 PM.

Copyright BetaSoft Inc.