org.openqa.selenium.InvalidSelectorException: Locator Strategy 'name' is not supported for this session (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 7 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09' System info: host: '192.168.100.4', ip: '192.168.100.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_60' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{app=/Users/dmle1/git/e2e_test/target/test-classes/tst-TeliaMinMobil-v1.12.0.257-build413.apk, appPackage=com.halebop.servicetips.tst, networkConnectionEnabled=true, warnings={}, appWaitPackage=com.halebop.servicetips.tst, appWaitActivity=com.halebop.servicetips.activity.LoginActivity, databaseEnabled=false, deviceName=YT910WS1FT, platform=LINUX, deviceUDID=YT910WS1FT, appActivity=com.halebop.servicetips.activity.LoginActivity, desired={app=/Users/dmle1/git/e2e_test/target/test-classes/tst-TeliaMinMobil-v1.12.0.257-build413.apk, platformVersion=6.0, automationName=Appium, browserName=, platformName=Android, deviceName=Android}, platformVersion=6.0.1, webStorageEnabled=false, locationContextEnabled=false, automationName=Appium, takesScreenshot=true, browserName=, javascriptEnabled=true, platformName=Android}] Session ID: a414e0c8-0529-483c-9126-68063c693056 *** Element info: {Using=name, value=moveToNewPhone}

GitHub | dmlemeshko | 5 months ago
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

    @AndroidFindBy, @iOSFindBy doesn't work correctly with selenide

    GitHub | 5 months ago | dmlemeshko
    org.openqa.selenium.InvalidSelectorException: Locator Strategy 'name' is not supported for this session (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 7 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09' System info: host: '192.168.100.4', ip: '192.168.100.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_60' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{app=/Users/dmle1/git/e2e_test/target/test-classes/tst-TeliaMinMobil-v1.12.0.257-build413.apk, appPackage=com.halebop.servicetips.tst, networkConnectionEnabled=true, warnings={}, appWaitPackage=com.halebop.servicetips.tst, appWaitActivity=com.halebop.servicetips.activity.LoginActivity, databaseEnabled=false, deviceName=YT910WS1FT, platform=LINUX, deviceUDID=YT910WS1FT, appActivity=com.halebop.servicetips.activity.LoginActivity, desired={app=/Users/dmle1/git/e2e_test/target/test-classes/tst-TeliaMinMobil-v1.12.0.257-build413.apk, platformVersion=6.0, automationName=Appium, browserName=, platformName=Android, deviceName=Android}, platformVersion=6.0.1, webStorageEnabled=false, locationContextEnabled=false, automationName=Appium, takesScreenshot=true, browserName=, javascriptEnabled=true, platformName=Android}] Session ID: a414e0c8-0529-483c-9126-68063c693056 *** Element info: {Using=name, value=moveToNewPhone}
  2. 0

    All test Fails automatically after first @Test failure from same class

    Stack Overflow | 6 months ago | Anton
    org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 80.28 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09' System info: host: 'WUSAF185125-G3D', ip: '153.86.242.30', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{app=/Users/af185125/android-ui-test/currentApp/appiumT.apk, appPackage=com.ao.demo.beta, networkConnectionEnabled=true, warnings={}, appWaitPackage=com.ao.demo.beta, appWaitActivity=com.ao.core.ui.launch.LaunchActivity, databaseEnabled=false, deviceName=ad071603280ea0c18d, version=6.0, fullReset=true, platform=LINUX, deviceUDID=ad071603280ea0c18d, appActivity=com.ao.core.ui.launch.LaunchActivity, desired={app=/Users/af185125/android-ui-test/currentApp/appiumT.apk, newCommandTimeout=4000, platformVersion=6.0, automationName=Appium, platformName=Android, deviceName=Automation, version=6.0, optionalIntentArguments=--es appium_config "{"useTimeSelection":false,"disableBirthday":true}", fullReset=true}, newCommandTimeout=4000, platformVersion=6.0.1, webStorageEnabled=false, locationContextEnabled=false, automationName=Appium, takesScreenshot=true, javascriptEnabled=true, platformName=Android, optionalIntentArguments=--es appium_config "{"useTimeSelection":false,"disableBirthday":true}"}] Session ID: 30270d0f-8594-4ead-b5b6-56dfeee37f44 *** Element info: {Using=id, value=fasf.com}
  3. 0

    Variety of issues testing Android Webview using Appium

    Stack Overflow | 4 months ago | Slims
    org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Can't stop process; it's not currently running (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 224 milliseconds Build info: version: 'unknown', revision: '1969d75', time: '2016-10-18 09:43:45 -0700' System info: host: 'company-me-m', ip: '192.168.1.154', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_45' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{app=/work/builds/unify/app/build/outputs/apk/app-debug.apk, appPackage=com.company.unify, networkConnectionEnabled=true, warnings={}, databaseEnabled=false, deviceName=emulator-5554, platform=LINUX, deviceUDID=emulator-5554, appActivity=AdministerActivity, desired={app=/work/builds/unify/app/build/outputs/apk/app-debug.apk, appPackage=com.comany.unify, appActivity=AdministerActivity, appium-version=1.5.3, platformVersion=6.0, automationName=Appium, platformName=Android, deviceName=AppiumTesterDevice}, appium-version=1.5.3, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, automationName=Appium, takesScreenshot=true, javascriptEnabled=true, platformName=Android}] Session ID: bc7100bd-2498-47d2-b0f2-3b29602c8e0d
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Facing problem while switching from Native to WebView in appium

    GitHub | 4 months ago | ankitgupta0304
    org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@class='address-section']//p[contains(text(),'blastandroid')]"} (Session info: chrome=55.0.2883.91) (Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.11.3 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 349 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43' System info: host: 'AnkitGupta04.local', ip: '10.20.86.78', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.3', java.version: '1.8.0_101' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{appPackage=com.xxx.main, app=/Users/ankit.gupta04/Documents/Automation/xxx-ios-automation/TestSnapdealAutomation/app/xxx-universal-debug6.2.5.apk, networkConnectionEnabled=true, warnings={}, databaseEnabled=false, deviceName=fb04e45f, platform=LINUX, deviceUDID=fb04e45f, appActivity=com.xxx.ui.material.activity.MaterialMainActivity, desired={appPackage=com.xxx.main, app=/Users/ankit.gupta04/Documents/Automation/xxx-ios-automation/TestxxxAutomation/app/Snapdeal-universal-debug6.2.5.apk, appActivity=com.xxx.ui.material.activity.MaterialMainActivity, newCommandTimeout=60000, platformVersion=5.1.5, browserName=, platformName=Android, udid=fb04e45f, deviceName=MI}, newCommandTimeout=60000, platformVersion=5.0.2, webStorageEnabled=false, locationContextEnabled=false, takesScreenshot=true, browserName=, javascriptEnabled=true, platformName=Android, udid=fb04e45f}] Session ID: dc49fb82-611b-4a61-95dc-e1231815c1f5 *** Element info: {Using=xpath, value=//div[@class='address-section']//p[contains(text(),'blastandroid')]}
  6. 0

    Appium hybrid app could not identify the locators

    Software Quality Assurance & Testing | 2 months ago | comrade
    org.openqa.selenium.WebDriverException: unknown error: cannot focus element (Session info: webview=33.0.0.0) (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.4.0-66-generic x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 497 milliseconds Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700' System info: host: 'naveen-Inspiron-3542', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-66-generic', java.version: '1.8.0_121' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{app=/home/naveen/IdeaProjects/QberLoginPage/app/Qber_Customer_V1.6.0.apk, appPackage=com.ionicframework.qber653346, networkConnectionEnabled=true, warnings={}, databaseEnabled=false, deviceName=192.168.1.8:5555, platform=LINUX, deviceUDID=192.168.1.8:5555, appActivity=MainActivity, desired={app=/home/naveen/IdeaProjects/QberLoginPage/app/Qber_Customer_V1.6.0.apk, appPackage=com.ionicframework.qber653346, appActivity=MainActivity, appium-version=1.6.3, platformVersion=4.4.4, platformName=Android, deviceName=Huawei}, appium-version=1.6.3, platformVersion=4.4.4, webStorageEnabled=false, locationContextEnabled=false, takesScreenshot=true, javascriptEnabled=true, platformName=Android}] Session ID: aa074358-2339-49e4-a077-4c4d9e402dbf

    2 unregistered visitors
    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. org.openqa.selenium.InvalidSelectorException

      Locator Strategy 'name' is not supported for this session (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 7 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09' System info: host: '192.168.100.4', ip: '192.168.100.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_60' Driver info: io.appium.java_client.android.AndroidDriver Capabilities [{app=/Users/dmle1/git/e2e_test/target/test-classes/tst-TeliaMinMobil-v1.12.0.257-build413.apk, appPackage=com.halebop.servicetips.tst, networkConnectionEnabled=true, warnings={}, appWaitPackage=com.halebop.servicetips.tst, appWaitActivity=com.halebop.servicetips.activity.LoginActivity, databaseEnabled=false, deviceName=YT910WS1FT, platform=LINUX, deviceUDID=YT910WS1FT, appActivity=com.halebop.servicetips.activity.LoginActivity, desired={app=/Users/dmle1/git/e2e_test/target/test-classes/tst-TeliaMinMobil-v1.12.0.257-build413.apk, platformVersion=6.0, automationName=Appium, browserName=, platformName=Android, deviceName=Android}, platformVersion=6.0.1, webStorageEnabled=false, locationContextEnabled=false, automationName=Appium, takesScreenshot=true, browserName=, javascriptEnabled=true, platformName=Android}] Session ID: a414e0c8-0529-483c-9126-68063c693056 *** Element info: {Using=name, value=moveToNewPhone}

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    3. Selenium
      RemoteWebDriver.execute
      1. org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
      2. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
      3. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
      3 frames
    4. java-client
      AndroidDriver.execute
      1. io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
      2. io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
      3. io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
      3 frames
    5. Selenium
      RemoteWebDriver.findElement
      1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
      1 frame
    6. java-client
      AndroidDriver.findElement
      1. io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:56)
      2. io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)
      3. io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1)
      3 frames
    7. Selenium
      RemoteWebDriver.findElementByName
      1. org.openqa.selenium.remote.RemoteWebDriver.findElementByName(RemoteWebDriver.java:461)
      1 frame
    8. java-client
      AndroidDriver.findElementByName
      1. io.appium.java_client.DefaultGenericMobileDriver.findElementByName(DefaultGenericMobileDriver.java:104)
      2. io.appium.java_client.AppiumDriver.findElementByName(AppiumDriver.java:1)
      3. io.appium.java_client.android.AndroidDriver.findElementByName(AndroidDriver.java:1)
      3 frames
    9. selenium-api
      By$ByName.findElement
      1. org.openqa.selenium.By$ByName.findElement(By.java:303)
      1 frame
    10. selenium-support
      ByIdOrName.findElement
      1. org.openqa.selenium.support.ByIdOrName.findElement(ByIdOrName.java:50)
      1 frame
    11. Selenium
      RemoteWebDriver.findElement
      1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
      1 frame
    12. java-client
      AndroidDriver.findElement
      1. io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:52)
      2. io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)
      3. io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1)
      3 frames
    13. com.codeborne.selenide
      SelenideElementProxy.invoke
      1. com.codeborne.selenide.impl.WebElementSelector.findElement(WebElementSelector.java:28)
      2. com.codeborne.selenide.impl.ElementFinder.getWebElement(ElementFinder.java:56)
      3. com.codeborne.selenide.impl.WebElementSource.checkCondition(WebElementSource.java:44)
      4. com.codeborne.selenide.impl.WebElementSource.findAndAssertElementIsVisible(WebElementSource.java:72)
      5. com.codeborne.selenide.commands.Click.execute(Click.java:14)
      6. com.codeborne.selenide.commands.Click.execute(Click.java:11)
      7. com.codeborne.selenide.commands.Commands.execute(Commands.java:140)
      8. com.codeborne.selenide.impl.SelenideElementProxy.dispatchAndRetry(SelenideElementProxy.java:86)
      9. com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:62)
      9 frames
    14. com.sun.proxy
      $Proxy28.click
      1. com.sun.proxy.$Proxy28.click(Unknown Source)
      1 frame
    15. com.ebuilder.qa
      SecureStepDefs.move_to_newPhone
      1. com.ebuilder.qa.screens.SaveAndTransferScreen.moveToNewPhone(SaveAndTransferScreen.java:25)
      2. com.ebuilder.qa.stepdefs.SecureStepDefs.move_to_newPhone(SecureStepDefs.java:50)
      2 frames