Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:28:47+00:00 2026-06-02T11:28:47+00:00

I have a website where I am using selenium for integration testing. I have

  • 0

I have a website where I am using selenium for integration testing.

I have link there that is generated using multiple variables from page.
I would like to verify the download pop up box is displaying if at all possible, when i am simulating click on link to download the file.

I know i can have JsUnit that will do that for me.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:28:48+00:00Added an answer on June 2, 2026 at 11:28 am

    Thnx to Slanec i have took up your examples.

    Ok after investigation I have decided that best solution will be
    something along this line.

        public int GetFileLenghtFromUrlLocation(string location)
        {
            int len = 0;
            int timeoutInSeconds = 5;
    
            // paranoid check for null value
            if (string.IsNullOrEmpty(location)) return 0;
    
            // Create a web request to the URL
            HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(location);
            myRequest.Timeout = timeoutInSeconds * 1000;
            myRequest.AddRange(1024);
            try
            {
                // Get the web response
                HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
    
                // Make sure the response is valid
                if (HttpStatusCode.OK == myResponse.StatusCode)
                {
                    // Open the response stream
                    using (Stream myResponseStream = myResponse.GetResponseStream())
                    {
                        if (myResponseStream == null) return 0;
    
                        using (StreamReader rdr = new StreamReader(myResponseStream))
                        {
                            len = rdr.ReadToEnd().Length;
                        }
                    }
                }
            }
            catch (Exception err)
            {
                throw new Exception("Error saving file from URL:" + err.Message, err);
            }
    
            return len;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We would like to use Selenium to test email content generated from our website.
I would like to publish a website using msbuild. Since I have a website
I have created a website using modx evolution v1.0.2. The website that I have
I have a website that's using forms authentication and membership. A user must have
I have one page website only using HTML, CSS and JavaScript. I want to
I have a website using lots of jQuery and JavaScript that produces a Done,
I have a website using the Google-maps Javascript API V3. I would like to
I have opened a website using WebBrowser. Now I would like to programmatically click
I've got a page on website that is using the awesome drag and drop
I'm using Selenium RC to write test cases for a website that's at least

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.