Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 36
Location : chennai

why im not able to run selenium  with eclipse Empty why im not able to run selenium with eclipse

Thu Dec 15, 2016 12:09 pm
hi
im trying to run java code  using eclipse and i get the following error .please someone help me out,,, im new to webdriver

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    WebDriver cannot be resolved to a type
    FirefoxDriver cannot be resolved to a type

    at runprojpack.runclass.main(runclass.java:6)
avatar
aryasajeev
Posts : 4
Join date : 2016-11-24

why im not able to run selenium  with eclipse Empty Re: why im not able to run selenium with eclipse

Mon Jan 16, 2017 11:50 pm
hi,

Please install java ,selenium standalone server selenium src along with eclipse and click on build as and select  add an external jar file ,then add all .jar files and selenium standalone and src.Please make sure that it doesn't have compatible issues.


Thanks
arya
avatar
anbarasi
Amateur
Amateur
Posts : 49
Join date : 2012-04-30
Age : 36
Location : chennai

why im not able to run selenium  with eclipse Empty Re: why im not able to run selenium with eclipse

Wed Jan 25, 2017 9:00 pm
i did all still get this error

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
    at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:89)
    at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:79)
    at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:67)
    at org.openqa.selenium.firefox.FirefoxDriver.getProfile(FirefoxDriver.java:260)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:236)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:110)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:190)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:179)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:92)
    at neww.newwclass.main(newwclass.java:7)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 11 more
Sponsored content

why im not able to run selenium  with eclipse Empty Re: why im not able to run selenium with eclipse

Back to top
Permissions in this forum:
You cannot reply to topics in this forum