Appium 1.7.6 does not support Findelementbyname (locator)

Source: Internet
Author: User
Tags appium testng

Appium 1.7.6 does not support Findelementbyname (locator) Do not know why? Many of these statements in the script, it's a lot of trouble.

Org.openqa.selenium.InvalidSelectorException:Locator strategy ' name ' is not supported for this session (Warning:the serv Er did not provide any stacktrace information)


Element Info: {using=name, value= pickup}
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:62)
At Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)
At Java.lang.reflect.Constructor.newInstance (constructor.java:422)
At Org.openqa.selenium.remote.ErrorHandler.createThrowable (errorhandler.java:206)
At org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed (errorhandler.java:158)
At Org.openqa.selenium.remote.RemoteWebDriver.execute (remotewebdriver.java:647)
At Io.appium.java_client. Defaultgenericmobiledriver.execute (DEFAULTGENERICMOBILEDRIVER.JAVA:40)
At Io.appium.java_client. Appiumdriver.execute (appiumdriver.java:1)
At Io.appium.java_client.android.AndroidDriver.execute (androiddriver.java:1)
At Org.openqa.selenium.remote.RemoteWebDriver.findElement (remotewebdriver.java:353)
At Io.appium.java_client. Defaultgenericmobiledriver.findelement (defaultgenericmobiledriver.java:56)
At Io.appium.java_client. Appiumdriver.findelement (appiumdriver.java:1)
At Io.appium.java_client.android.AndroidDriver.findElement (androiddriver.java:1)
At Org.openqa.selenium.remote.RemoteWebDriver.findElementByName (remotewebdriver.java:451)
At Io.appium.java_client. Defaultgenericmobiledriver.findelementbyname (defaultgenericmobiledriver.java:104)
At Io.appium.java_client. Appiumdriver.findelementbyname (appiumdriver.java:1)
At Io.appium.java_client.android.AndroidDriver.findElementByName (androiddriver.java:1)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:62)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:497)
At Org.testng.internal.MethodInvocationHelper.invokeMethod (methodinvocationhelper.java:100)
At Org.testng.internal.Invoker.invokeMethod (invoker.java:646)
At Org.testng.internal.Invoker.invokeTestMethod (invoker.java:811)
At Org.testng.internal.Invoker.invokeTestMethods (invoker.java:1137)
At Org.testng.internal.TestMethodWorker.invokeTestMethods (testmethodworker.java:129)
At Org.testng.internal.TestMethodWorker.run (testmethodworker.java:112)
At Org.testng.TestRunner.privateRun (testrunner.java:753)
At Org.testng.TestRunner.run (testrunner.java:607)
At Org.testng.SuiteRunner.runTest (suiterunner.java:368)
At Org.testng.SuiteRunner.runSequentially (suiterunner.java:363)
At Org.testng.SuiteRunner.privateRun (suiterunner.java:321)
At Org.testng.SuiteRunner.run (suiterunner.java:270)
At Org.testng.SuiteRunnerWorker.runSuite (suiterunnerworker.java:52)
At Org.testng.SuiteRunnerWorker.run (suiterunnerworker.java:86)
At Org.testng.TestNG.runSuitesSequentially (testng.java:1284)
At Org.testng.TestNG.runSuitesLocally (testng.java:1209)
At Org.testng.TestNG.runSuites (testng.java:1124)
At Org.testng.TestNG.run (testng.java:1096)
At Org.testng.remote.AbstractRemoteTestNG.run (abstractremotetestng.java:126)
At Org.testng.remote.RemoteTestNG.initAndRun (remotetestng.java:137)
At Org.testng.remote.RemoteTestNG.main (remotetestng.java:58)

Appium 1.7.6 does not support Findelementbyname (locator)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.