org.testng.TestNGException: Cannot instantiate class com.SF.TestCases.Administrator_Test_Case

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    'Cannot instantiate class' error in Selenium WebDriver

    Software Quality Assurance & Testing | 12 months ago | noor salma
    org.testng.TestNGException: Cannot instantiate class com.SF.TestCases.Administrator_Test_Case
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:212)
    1 frame
  3. selenium-support
    WebDriverWait.<init>
    1. org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:102)
    2. org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:71)
    3. org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:45)
    3 frames
  4. com.SF.Pages
    SFQA_Administrator.<init>
    1. com.SF.Pages.SFQA_Administrator.<init>(SFQA_Administrator.java:17)
    1 frame
  5. com.SF.TestCases
    Administrator_Test_Case.<init>
    1. com.SF.TestCases.Administrator_Test_Case.<init>(Administrator_Test_Case.java:16)
    1 frame
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  7. TestNG
    RemoteTestNG.main
    1. org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
    2. org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:382)
    3. org.testng.internal.ClassHelper.createInstance(ClassHelper.java:295)
    4. org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:118)
    5. org.testng.internal.ClassImpl.getInstances(ClassImpl.java:183)
    6. org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:128)
    7. org.testng.TestRunner.initMethods(TestRunner.java:416)
    8. org.testng.TestRunner.init(TestRunner.java:242)
    9. org.testng.TestRunner.init(TestRunner.java:212)
    10. org.testng.TestRunner.<init>(TestRunner.java:166)
    11. org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:143)
    12. org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:272)
    13. org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:587)
    14. org.testng.SuiteRunner.init(SuiteRunner.java:161)
    15. org.testng.SuiteRunner.<init>(SuiteRunner.java:114)
    16. org.testng.TestNG.createSuiteRunner(TestNG.java:1290)
    17. org.testng.TestNG.createSuiteRunners(TestNG.java:1277)
    18. org.testng.TestNG.runSuitesLocally(TestNG.java:1131)
    19. org.testng.TestNG.run(TestNG.java:1048)
    20. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)
    21. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
    22. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)
    22 frames