SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Sep 2004
    Location
    mumbai
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Pages Recognition within a Window

    Hi,
    At present I'm doing on Web Based Project.In my project a single window having multiple pages. But initially one page will be available. After fullfilling the fields in that page and pressing the submit button next page will be opened with in that samewindow (overlaping the previous page). It's going on continuously.
    while generating automation code I'm unable to recognize the newly opened pages and its objects (to enter some values in to that page fields). so can you please send me the example code for this problem.

    Thanks & Regards,
    M. Rukmangadha Reddy.
    mallidir@bsil.com

    mruk72@yahoo.com

  2. #2
    Senior Member
    Join Date
    May 2002
    Location
    Las Vegas, NV, USA
    Posts
    499
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Pages Recognition within a Window

    Hi Mallidir,

    When recording tests on web pages, TestComplete just creates simple "skeleton" scripts to be used as a basis for the fully functional tests that should be created later by a tester. Therefore, in the most cases you should modify scripts recorded by TestComplete, namely reassign the page object to a just opened Internet Explorer window.
    Please see the following script that illustrates this:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[VBScript]
    Sub WebTest
    Set p = Sys.Process(&quot;IEXPLORE&quot
    Set w = p.Window(&quot;IEFrame&quot;, &quot;*&quot
    w.Activate
    Set page = w.Page(&quot;*&quot.ToURL(&quot;http://www.automatedqa.com&quot;)

    ' Invoke the popup menu
    Call page.A.A_8.ClickR(15, 5)
    Call w.PopupMenu.Click(&quot;Open in New Window&quot

    ' Assign the page object to a new Internet Explorer window
    Set w = p.WaitWindow(&quot;IEFrame&quot;, &quot;About AQA*&quot;, -1, 30000)
    w.Activate
    Set page = w.Page(&quot;*&quot

    page.Wait

    ' Modify the recorded script:
    ' Replace the following path to the page object
    ' p.Window(&quot;IEFrame&quot;, &quot;About AQA - Microsoft Internet Explorer&quot.Window(&quot;Internet Explorer_Server&quot
    ' with the call to this object
    ' page
    page.INPUT.search.Click
    Call Sys.Keys(&quot;TestComplete&quot
    page.A.A_16.Click
    page.Wait

    ' Close the second window
    w.Close

    ' Assign the first Internet Explorer window to the page object again
    Set w = p.Window(&quot;IEFrame&quot;, &quot;AutomatedQA*&quot
    w.Activate
    Set page = w.Page(&quot;*&quot

    Call page.A.A_18.Click(15, 5)
    page.Wait
    End Sub</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    Regards,
    Bobby Edgar
    Olagoo.com
    Save on AutomatedQA Products

 

 

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 11.54%
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 02:11 AM.

Copyright BetaSoft Inc.