SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Montebello,ca,USA
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to capture dynamically changing windows title and focus on it.

    Hi friends,

    I have a problem in focusing dynamically changing window title.

    Scenario:
    I have a Find window in the application, from that window we can find customer info by providing custID# and when click on find button, it automatically takes to the main screen,
    where main screen title changes to custID# and customer name and Status

    Physical description:
    {
    class: window,
    label: "!Account: 01234567 Name: Nghia TestLastName Status: .*",
    MSW_class: "!Afx:.*"
    }

    here is the problem, how to capture & focus that dynamically changing title,

    when i'm running the test getting an error.

    Greatly appreciated your help.

    Thanks

  2. #2
    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: How to capture dynamically changing windows title and focus on it.

    Change the label in the physical description FROM:
    label: "!Account: 01234567 Name: Nghia TestLastName Status: .*",

    TO:
    label: "!Account:.*",

    To set "focus" use the win_activate() or set_window() statement (preferably the latter) using the logical name of the window.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    Montebello,ca,USA
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to capture dynamically changing windows title and focus on it.

    Thank you friend after using regular expression it is working.

    Thanks a lot

 

 

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 12.50%
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 12:21 PM.

Copyright BetaSoft Inc.