SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2002
    Location
    Bangalore,Karnataka,India
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to capture a File loaded in browser at runtime?

    Hi,
    I would like to know if any one has worked on capturing a File(of any type) name and location at run time using SilkTest.
    Example: I have a link in an HTML file which opens a CSV file at runtime by giving a random name to it. I want my script to capture this randome filename along with its path.
    Thanks,
    Shail

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to capture a File loaded in browser at runtime?

    Can you get this by using GetLocation() on the link?



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

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Location
    Bangalore,Karnataka,India
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to capture a File loaded in browser at runtime?

    Hi,
    I am sorry. I don't think I made myself clear.I have a program that gets executed on click of a link/HTML button. This program generates a dynamic CSV file by giving a random name to it. Getting file path should not be an issue as it can be hard coded. But my main concern is to capture the name of this file which gets created in Runtime !
    This CSV file gets loaded in a frame in the browser.
    Regards,
    Shail

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

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to capture a File loaded in browser at runtime?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shail:
    Hi,
    I am sorry. I don't think I made myself clear.I have a program that gets executed on click of a link/HTML button. This program generates a dynamic CSV file by giving a random name to it. Getting file path should not be an issue as it can be hard coded. But my main concern is to capture the name of this file which gets created in Runtime !
    This CSV file gets loaded in a frame in the browser.
    Regards,
    Shail
    <HR></BLOCKQUOTE>


    A picture of what this thing looks like would be useful...

    Two ideas:

    1. If the name of the file is present in the frame as static text, declare the entry generically with a "#-number" tag. Use GetText() to obtain it.

    2. If an applet is generated separately and it retain input focus (its caption has color), you might be able to use Desktop.GetActive() to identify it.


    john


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

 

 

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 08:57 PM.

Copyright BetaSoft Inc.