java.lang.NoSuchMethodError: io.appium.java_client.ios.IOSDriver.substituteMobilePlatform(Lorg/openqa/selenium/Capabilities;Ljava/lang/String;)Lorg/openqa/selenium/Capabilities;

Stack Overflow | Akif Hazarvi | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    FAILED CONFIGURATION: @BeforeTest beforeTest on running this code as testNg

    Stack Overflow | 9 months ago | Akif Hazarvi
    java.lang.NoSuchMethodError: io.appium.java_client.ios.IOSDriver.substituteMobilePlatform(Lorg/openqa/selenium/Capabilities;Ljava/lang/String;)Lorg/openqa/selenium/Capabilities;
  2. 0

    NoSuchMethodError: io.appium.java_client.ios.IOSDriver.substituteMobilePlatform

    GitHub | 2 years ago | baubakg
    java.lang.NoSuchMethodError: io.appium.java_client.ios.IOSDriver.substituteMobilePlatform(Lorg/openqa/selenium/Capabilities;Ljava/lang/String;)Lorg/openqa/selenium/Capabilities;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      io.appium.java_client.ios.IOSDriver.substituteMobilePlatform(Lorg/openqa/selenium/Capabilities;Ljava/lang/String;)Lorg/openqa/selenium/Capabilities;

      at io.appium.java_client.ios.IOSDriver.<init>()
    2. java-client
      IOSDriver.<init>
      1. io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:37)
      1 frame
    3. testgoogleapp
      NewTest.beforeTest
      1. testgoogleapp.NewTest.beforeTest(NewTest.java:30)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)
      2. org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
      3. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:216)
      4. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:143)
      5. org.testng.TestRunner.beforeRun(TestRunner.java:624)
      6. org.testng.TestRunner.run(TestRunner.java:592)
      7. org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
      8. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
      9. org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
      10. org.testng.SuiteRunner.run(SuiteRunner.java:268)
      11. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      12. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      13. org.testng.TestNG.runSuitesSequentially(TestNG.java:1264)
      14. org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
      15. org.testng.TestNG.runSuites(TestNG.java:1104)
      16. org.testng.TestNG.run(TestNG.java:1076)
      17. org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
      18. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
      19. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
      19 frames