SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2002
    Location
    tokyo
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to change the focus to other window?

    I am using AQT and suffering from this problem:

    My testing web-app has two window, and these
    windows have the same name.In one window, I click "Log in", then the other window appears(by JavaScript), and I enter ID and password.
    AQT's robot cannot identify the second window, and waits about a minute and returns error.(or sometimes, sends the uri and post data to browser, and the process goes on.)

    I want to tell AQT's robot to change the focus to the second window, but I can't find the solution.
    Someone who is AQT's gulu, please help me!

    (I'm non English native, so I am sorry my dirty spelling

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

  2. #2
    Junior Member
    Join Date
    Jan 2002
    Location
    Fort Lee, NJ, USA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to change the focus to other window?

    Try this. It helped me in similar situation.

    ' Example
    Browser("Sainsbury's_2").Page("Sainsbury's").Sync
    Browser("index:=0").Page("micclass:=Page").Check CheckPoint("Sainsbury's")

    ' End

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

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to change the focus to other window?

    My problem is nearly the same.
    I have a pop up (JavaScript) where I have to entry some values.

    Problem ist that AQT won`t find the Pop-up after it is opened. The example given by Ptashechka may be work, but i have no clue how to use it...

    Can anybody help?

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

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

    Re: How to change the focus to other window?

    The syntax :
    Browser("index:=0"). ...
    Simply refers to the first browser opened (respectively you can use 'Browser("index:=1")' etc...)
    see Using programmatic description in the QuickTest Help for details.


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

 

 

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 6.67%
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 07:55 AM.

Copyright BetaSoft Inc.