Selenium WebDriver Element

Posted by cxyz on Stack Overflow See other posts from Stack Overflow or by cxyz
Published on 2012-10-25T09:07:47Z Indexed on 2012/11/28 11:03 UTC
Read the original article Hit count: 354

Filed under:
|
|

How do i configure selenium WebDriver.I have automated test cases using Selenium.Now i need to automate upload and download of a file.So i have to automate using WebDriver.I had added webdriver-common-0.9.7376.jar.Now how do i instantiate for Internet Explorer?

Am just decalring variable and using driver

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

Is this correct?

© Stack Overflow or respective owner

Related posts about java

Related posts about selenium