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 9275329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:33:52+00:00 2026-06-18T16:33:52+00:00

How do I configure Selenium WebDriver? I have automated test cases using Selenium with

  • 0

How do I configure Selenium WebDriver? I have automated test cases using Selenium with Java. Now I need to automate upload and download of a file using WebDriver. I had added webdriver-common-0.9.7376.jar. I like to use Internet Explorer. How can I do that?

I’m just declaring variable and using driver

private static WebDriver driver;
driver.findElement(By.id(upload)).sendKeys("file to be upload");

Is this correct?

  • 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-18T16:33:53+00:00Added an answer on June 18, 2026 at 4:33 pm

    Ques. 1: How to configure WebDriver?

    Ans: There are 2 ways: 1) Adding “selenium-server-standalone-2.29.0.jar” only

    OR,
    2) Adding “selenium-java-2.29.0.jar” and all the jars located on “selenium-java-2.29.0\selenium-2.29.0\libs” folder

    You can download “selenium-server-2.29.0.zip” and “selenium-java-2.29.0.zip” from http://code.google.com/p/selenium/downloads/detail?name=selenium-server-2.29.0.zip and http://code.google.com/p/selenium/downloads/detail?name=selenium-java-2.29.0.zip respectively.
    Extract them and you could get corresponding jar files to add.

    Ques. 2: How to instantiate IE and how to upload file?

    Ans: The java code as below:

    File file = new File("C:\\Program Files\\Internet Explorer\\iexplore.exe");
    System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
    WebDriver driver = new InternetExplorerDriver();
    driver.findElement(By.id("upload")).sendKeys("file to be upload");
    

    If “File file = new File(“C:\Program Files\Internet Explorer\iexplore.exe”);” doesn’t work download “IEDriverServer” and replace that line with below:

    File file = new File("E:\\Ripon\\IEDriverServer_Win32_2.29.1\\IEDriverServer.exe");
    

    [Note: You can download “IEDriverServer” from http://code.google.com/p/selenium/downloads/list ]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My configure.in file has LT_VERSION=1.1 . I am using the latest version of autoconf
I am trying to configure authentication using a few tutorials I have found on
I'm using selenium webdriver to do some downloading using firefox. At the moment my
I want to automate some GUI tasks using Selenium. And integrate this task in
I just recently started using Selenium Webdriver (as opposed to Selenium 1.0), and I
The configure file test.conf is as below: <ocsigen> <server> <port>*:8000</port> <logdir>/home/zaxis/tmp/log/</logdir> <datadir>/home/zaxis/tmp/data</datadir> <user>zaxis</user> <group>wheel</group>
I have written some system tests using C#, Selenium and NUnit and configured my
I have ran some recorded script using selenium RC in visual studio(c#). I have
I am using Selenium 2.25.0 to automate GUI testing for a web application. This
I am using m2e eclipse plugin in 4.2 Juno. I see the selenium-chrome-driver-2.26.0.jar file

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.