Configure Selenium WebDriver with Eclipse

Опубликовано: 20 Март 2026
на канале: Michael Herman
61,064
157

In this video I show how to setup and test Selenium 2 WebDriver with Eclipse for Java.
Junit -    • JUnit Testing in Eclipse  
Download Selenium - http://docs.seleniumhq.org/download/

The following code is used in the example-

package test;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;

public class test {

public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get(-http:--www.google.com--);
WebElement element = driver.findElement(By.name(-q-));
element.sendKeys(-mysql excel 2013-);
element.submit();
}

}