Results 1 to 4 of 4
  1. #1

    How to add and click a Favorites item?

    How can I add an item to the Favorites list of the browser (IE) at run time.

    How can I select that item from the Favorites list later in the test run?

    I tried recording the process but QTP fails on it during playback. Here's what it recorded for adding the item:

    Browser("Browser").WinToolbar("ToolbarWindow32").P ress "F&avorites"
    Browser("Browser").Dialog("Add Favorite").WinEdit("Name:").Set "TestBookmark"
    Browser("Browser").Dialog("Add Favorite").WinButton("OK").Click

    It only plays back the first line, and stops.

    Here's what it recorded for selecting the item:

    Browser("Browser").WinToolbar("ToolbarWindow32").P ress "F&avorites"

    So it naturally stops after this line too.

    Any ideas?


  2. #2
    Join Date
    Sep 2001
    Doncaster, UK

    Re: How to add and click a Favorites item?

    Why don't you execute the actual shortcut itself:

    SystemUtil.Run "C:\Documents and Settings\smithma\Favorites\W3C XML Schema tools.url"

    This will open a browser to the W3C site from my favourites, amend the path to your favourites and execute one of them.

    Mark Smith.

  3. #3
    Advanced Member tonymro's Avatar
    Join Date
    Jul 1999
    Deep in the Coast Range Mountains of Oregon, USA

    Re: How to add and click a Favorites item?

    Unless you are testing the IE browser for Microsoft, why would you even be using test automation to interact with the Favorites list? Does the application that you are testing somehow modify the core functionality of the IE browser?
    Sr. Software Test Automation Architect

  4. #4

    Re: How to add and click a Favorites item?

    Thanks for the tip. I'd try to get the current user's Fav folder and save it there.

    I am trying to bookmark a page of my application while I am logged in, and then open it while I am logged out. Testing system security!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:55 PM.

Copyright BetaSoft Inc.