SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4

Thread: TAB Navigation

  1. #1
    Member
    Join Date
    Mar 2005
    Location
    usa
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    TAB Navigation

    Hello,

    I am trying to test for Navigation using the <Tab> key for my Windows application. I need to check that the navigation is moving rightly i.e. from Link A --> Link B--> Link C by using <TAB> key. I tried using Chackpoints for this but even if the Focus is on Link B and I run the script instead of failing it passes successfully.
    Checkpoints validation is as follows:

    DIM a
    a = SwfWindow("Application Window").SwfLabel("LinkA").Check (CheckPoint("LinkA"))
    IF a = "True" then
    msgbox A
    Else
    msgbox "False"
    End IF
    This passes even if the focus is on Link B and ideally the TAB should move to Link C and test should fail as the Focus is not where it should be. On Link A


    Thanks in advance

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,839
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TAB Navigation

    Use the RO Property focused:

    If SwfWindow("Application Window").SwfLabel("LinkA").GetROProperty("focused" ) Then
    MsgBox "Focused"
    Else
    MsgBox "Not Focused"
    End If

    Mark Smith.

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Location
    mumbai
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TAB Navigation

    u would be requerid getro property
    getro property is the to know value of the runtime
    getroproperty("value")
    gnvravibabu

  4. #4
    Member
    Join Date
    Mar 2005
    Location
    usa
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TAB Navigation

    Thanks Mark!

    It worked!!!

    Mallika

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:18 PM.

Copyright BetaSoft Inc.