SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I call an object\'s method by its tag?

    When I am testing a windows application,I find that some menu item couldn't be picked.
    This problem can be solved by using PressMouse and RleaseMouse,but is there an other way to solve it ?

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

  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: Can I call an object\'s method by its tag?

    Does SilkTest actually "see" the object you're trying to Pick as an instance of the MenuItem class?

    I'm also a bit confused by the title of this post ("Can I call an object's method by its tag?") and what that has to do with this.

    - Dave


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

  3. #3
    Junior Member
    Join Date
    Sep 2001
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I call an object\'s method by its tag?

    Thank you for your reply.
    Yes ,SilkTest can actually "see" the object .
    In fact ,that was an ordinary menu:"File.Print",but when I code "File.Print.Pick()",it didn't work.

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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I call an object\'s method by its tag?

    Are you using Multitags?

    I have come across a similar situation. I was using multitags (Caption and Window ID only). This then resolved my problem.

    In my application I have many menus and therefore, when I was using all the tags it was getting confused. When I changed to just Caption and Window ID as the tags, it worked fine.

    Another thing, within silk select Record -> Window Identifiers. Move the mouse over the menu item File -> Print in your application, and check that it displays "WindowName.File.Print".

    Hope this helps...

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  5. #5
    Junior Member
    Join Date
    Sep 2001
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I call an object\'s method by its tag?

    In include file:
    window MainWin FVX
    Menu File
    tag "File"
    .
    .
    MenuItem FVXLogOff
    multitag "FVX Log Off!"
    "$32943"
    .
    .
    In .t file:
    .
    .
    FVX.File.FVXLogOff.Click()
    .
    .

    Generally speaking,the codes in *.t file can work ,but this time they don't work . what 's matter with them ?


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

 

 

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 09:20 PM.

Copyright BetaSoft Inc.