Hi All,
I am very new for selenium and started with selenium 2 with web
driver .As given on the link
http://seleniumhq.org/docs/03_webdriver.html#getting-started-with-selenium-webdriver
-- i configured Maven with all the environmental variable setting and
also checked Maven is installed successfully.Now i pasted the given
example of JAVA in notepad and saved example in my project folder
with .java extension....but it showed me 12 errors .........below is
the error that i am getting ----
Please help and let me know the issue .......
Thanks
==================================================================
^
Selenium2Example.java:4: cannot find symbol
symbol : class WebDriver
location: package org.openqa.selenium
import org.openqa.selenium.WebDriver;
^
Selenium2Example.java:5: cannot find symbol
symbol : class WebElement
location: package org.openqa.selenium
import org.openqa.selenium.WebElement;
^
Selenium2Example.java:6: package org.openqa.selenium.firefox does not
exist
import org.openqa.selenium.firefox.FirefoxDriver;
^
Selenium2Example.java:7: package org.openqa.selenium.support.ui does
not exist
import org.openqa.selenium.support.ui.ExpectedCondition;
^
Selenium2Example.java:8: package org.openqa.selenium.support.ui does
not exist
import org.openqa.selenium.support.ui.WebDriverWait;
^
Selenium2Example.java:15: cannot find symbol
symbol : class WebDriver
location: class org.openqa.selenium.example.Selenium2Example
WebDriver driver = new FirefoxDriver();
^
Selenium2Example.java:15: cannot find symbol
symbol : class FirefoxDriver
location: class org.openqa.selenium.example.Selenium2Example
WebDriver driver = new FirefoxDriver();
^
Selenium2Example.java:23: cannot find symbol
symbol : class WebElement
location: class org.openqa.selenium.example.Selenium2Example
WebElement element = driver.findElement(By.name("q"));
^
Selenium2Example.java:23: cannot find symbol
symbol : variable By
location: class org.openqa.selenium.example.Selenium2Example
WebElement element = driver.findElement(By.name("q"));
^
Selenium2Example.java:36: cannot find symbol
symbol : class ExpectedCondition
location: class org.openqa.selenium.example.Selenium2Example
(new WebDriverWait(driver, 10)).until(new
ExpectedCondition<Boolean>() {
^
Selenium2Example.java:36: cannot find symbol
symbol : class WebDriverWait
location: class org.openqa.selenium.example.Selenium2Example
(new WebDriverWait(driver, 10)).until(new
ExpectedCondition<Boolean>() {
^
12 errors
===============================================================