Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

why do i get this error

View previous topic View next topic Go down

why do i get this error

Post by anbarasi on Wed Jan 25, 2017 9:00 pm

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

anbarasi
Amateur
Amateur

Posts : 48
Join date : 2012-04-30
Age : 29
Location : chennai

Back to top Go down

Re: why do i get this error

Post by kostaf on Sat Jan 28, 2017 12:12 am

Have you imported all the libraries that come with the Selenium correctly? Could you provide information what libraries you have added to? What FireFox driver and the browser version is installed? At what line of the code is this exception generated. Without this information it won't be possible to provide you the answer.

kostaf

Posts : 1
Join date : 2017-01-27

Back to top Go down

Re: why do i get this error

Post by anbarasi on Thu Feb 02, 2017 1:02 pm

ya i have installed  firefox version 49.0.1 , jdk, and made a new folder named lib and put all these 3 jar files 1. selenium-server-standalone-3.0.1,
2.selenium-java-2.31.0 jar file,
3.junit-4.10
and add my build path to this

anbarasi
Amateur
Amateur

Posts : 48
Join date : 2012-04-30
Age : 29
Location : chennai

Back to top Go down

Re: why do i get this error

Post by anbarasi on Thu Feb 02, 2017 1:28 pm

each website shows different ways nd jar files.. dont know wat actually im doing....

anbarasi
Amateur
Amateur

Posts : 48
Join date : 2012-04-30
Age : 29
Location : chennai

Back to top Go down

Re: why do i get this error

Post by soumyamishrav@gmail.com on Sat Feb 04, 2017 6:45 pm

can u downgrade the firefox version and re imoprt the lib and check

soumyamishrav@gmail.com

Posts : 4
Join date : 2017-02-04

Back to top Go down

Re: why do i get this error

Post by Rahul on Thu Feb 16, 2017 5:26 pm

Please visit http://www.seleniumhq.org/about/platforms.jsp, it will tell which version of selenium are support with which version of firefox.

Subscribe to http://www.helpingtesters.com/blog/ for updates.

Rahul

Posts : 2
Join date : 2017-02-09

Back to top Go down

Re: why do i get this error

Post by janbaskt on Fri Feb 17, 2017 4:38 pm

must be error in the code related to browser. you should rectify

janbaskt
Active particpant
Active particpant

Posts : 10
Join date : 2016-11-21

http://www.janbasktraining.com/selenium-testing-course/

Back to top Go down

Re: why do i get this error

Post by anbarasi on Sun Apr 23, 2017 9:43 pm

hi thanks all... it works now my firefox version did not support selenium stand alone and i changed all these and it works now....

anbarasi
Amateur
Amateur

Posts : 48
Join date : 2012-04-30
Age : 29
Location : chennai

Back to top Go down

Re: why do i get this error

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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