SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Save Html Page

    SilkTest 5.5 has a new BrowserPage method, GetPageSource() that returns the HTML Source as a LIST OF STRING. You can then write then out to a file.

    I tried it a while ago, it wasn't giving me the whole page back.

    You can also write your own method that goes to the View|Source menu of IE, then save the source that is opened in Notpad. I had done that a while ago and it work (but I can't find that method in my library anymore).



    ------------------
    David Genrich
    david@e2Open.com
    david_kim@usa.net

  2. #2
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Save Html Page

    Hi David,
    I am using 5.0.3.1. So I cannot use GetPageSource()

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

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Save Html Page

    I wrote a function that does the following:

    1. Right click on the screen
    2. Click View Source in the popup menu
    3. Notepad will open with the html displayed, click File/Save As to save the html.
    4. Select the directory where you want to save the file (I have had problems when you do not specify the Desktop first and then select the d or c drive). You may have to make several selections to get to the location you want to go.
    5. I create a unique file name using a screen name and the datatime.
    6. Enter the file name with the appropriate extension in the input field.
    7. Click Save
    8. Make sure you put in the option of handling a file with the same name.
    9. Close Notepad

    You will need window declarations for Notepad and the Save As Screen.

    This has worked every time I have used it.

    I have included the functions I use to do this in the attachment above.

    Mike
    ------------------


    [This message has been edited by MikeF (edited 10-15-2001).]

    [This message has been edited by MikeF (edited 10-15-2001).]

  4. #4
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to Save Html Page

    Hi,
    I want to save the whole html web page under specific directory. Is there any easy why to do this?

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

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Save Html Page

    If you're using Internet Exploder 5.x you can also use the SaveAs functionality from the File Menu to save the entire file off to a directory. This will also save all graphics and included files if so desired.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  6. #6
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Save Html Page

    That's basically what the above function does but I've allowed more input so you can save it in a specific directory, with a specific name.

    Mike

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

  7. #7
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to Save Html Page

    Thanks Mike.

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

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 10:48 AM.

Copyright BetaSoft Inc.