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: 8 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'N/A', ip: 'N/A', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.7.0_79' *** Element info: {Using=name, value=myTab} Session ID: 13034d14-2ef4-4ea1-b46a-635f9832047b Driver info: io.appium.java_client.ios.IOSDriver Capabilities [{platform=MAC, app=/Users/xiaoming/aaa.ipa, javascriptEnabled=true, browserName=, networkConnectionEnabled=false, desired={app=/Users/hichao/test/mxyc_auto_test/apps/mxyc.ipa, platformVersion=8.3, deviceName=xiaoming, platformName=iOS, appiumVersion=1.0, unicodeKeyboard=true, resetKeyboard=true, udid=ac76963a56e13d8afeae83d3bb33a7f2c826b48a}, udid=ac76963a56e13d8afeae83d3bb33a7f2c826b48a, locationContextEnabled=false, platformVersion=8.3, databaseEnabled=false, platformName=iOS, deviceName=xiaoming, appiumVersion=1.0, webStorageEnabled=false, unicodeKeyboard=true, resetKeyboard=true, takesScreenshot=true}]

GitHub | xiaominghou | 12 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

    org.openqa.selenium.InvalidSelectorException: Locator Strategy 'name' is not supported for this session (WARNING: The server did not provide any stacktrace information)

    GitHub | 12 months ago | xiaominghou
    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: 8 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'N/A', ip: 'N/A', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.7.0_79' *** Element info: {Using=name, value=myTab} Session ID: 13034d14-2ef4-4ea1-b46a-635f9832047b Driver info: io.appium.java_client.ios.IOSDriver Capabilities [{platform=MAC, app=/Users/xiaoming/aaa.ipa, javascriptEnabled=true, browserName=, networkConnectionEnabled=false, desired={app=/Users/hichao/test/mxyc_auto_test/apps/mxyc.ipa, platformVersion=8.3, deviceName=xiaoming, platformName=iOS, appiumVersion=1.0, unicodeKeyboard=true, resetKeyboard=true, udid=ac76963a56e13d8afeae83d3bb33a7f2c826b48a}, udid=ac76963a56e13d8afeae83d3bb33a7f2c826b48a, locationContextEnabled=false, platformVersion=8.3, databaseEnabled=false, platformName=iOS, deviceName=xiaoming, appiumVersion=1.0, webStorageEnabled=false, unicodeKeyboard=true, resetKeyboard=true, takesScreenshot=true}]
  2. 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}
  3. 0

    InvalidSelectorException caused by TypeError: q is null with FF 37.0.1 and Selenium 2.45.0

    Google Groups | 2 years ago | Veranika Ivanova
    org.openqa.selenium.InvalidSelectorException: The given selector //*[text()='true'] is either invalid or does not result in a WebElement. The following error occurred: InvalidSelectorError: Unable to locate an element with the xpath expression //*[text()='true'] because of the following err r: TypeError: q is null 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.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' *** Element info: {Using=xpath, value=//*[text()='true']} Session ID: 21afcdd7-ffae-453d-8463-3bec9da0532c Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=WINDOWS, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=tru , browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnab ed=true, applicationCacheEnabled=true, takesScreenshot=true, version=37.0.1}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    InvalidSelectorException when selecting XPath button with Selenium

    Stack Overflow | 10 months ago | bluemunch
    org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression xpath=(//button[@type='button'])[17] because of the following error: TypeError: Failed to execute 'evaluate' on 'Document': The result is not a node set, and therefore cannot be converted to the desired type. (Session info: chrome=51.0.2704.103) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 77 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40' System info: host: 'OLCZPR112319', ip: '10.99.133.77', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_91' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4), userDataDir=C:\Users\MNXE\AppData\Local\Temp\scoped_dir1332_417}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=51.0.2704.103, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 8d72512617454899692b23a3f15ade99 *** Element info: {Using=xpath, value=xpath=(//button[@type='button'])[17]}
  6. 0

    Sporadic (InvalidSelectorException) type error thrown: TypeError: Failed to execute 'createNSResolver' on 'Document': parameter 1 is not of type 'Node'

    GitHub | 2 years ago | irileydev
    org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression //label[contains(text(), 'SOP Hub')] because of the following error: TypeError: Failed to execute 'createNSResolver' on 'Document': parameter 1 is not of type 'Node'. (Session info: chrome=43.0.2357.130) (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 3.26 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:16:47' System info: host: 'NY12LP517735', ip: '165.181.224.155', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\Users\ISAAC~1.RIL\AppData\Local\Temp\scoped_dir9056_16605}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=43.0.2357.130, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: bf09f86741c93e3efb5f7bb68567bf77 **\* Element info: {Using=xpath, value=//label[contains(text(), 'SOP Hub')]}

    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: 8 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'N/A', ip: 'N/A', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.7.0_79' *** Element info: {Using=name, value=myTab} Session ID: 13034d14-2ef4-4ea1-b46a-635f9832047b Driver info: io.appium.java_client.ios.IOSDriver Capabilities [{platform=MAC, app=/Users/xiaoming/aaa.ipa, javascriptEnabled=true, browserName=, networkConnectionEnabled=false, desired={app=/Users/hichao/test/mxyc_auto_test/apps/mxyc.ipa, platformVersion=8.3, deviceName=xiaoming, platformName=iOS, appiumVersion=1.0, unicodeKeyboard=true, resetKeyboard=true, udid=ac76963a56e13d8afeae83d3bb33a7f2c826b48a}, udid=ac76963a56e13d8afeae83d3bb33a7f2c826b48a, locationContextEnabled=false, platformVersion=8.3, databaseEnabled=false, platformName=iOS, deviceName=xiaoming, appiumVersion=1.0, webStorageEnabled=false, unicodeKeyboard=true, resetKeyboard=true, takesScreenshot=true}]

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      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:595)
      3 frames
    4. java-client
      IOSDriver.execute
      1. io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
      2. io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
      3. io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
      3 frames
    5. Selenium
      RemoteWebDriver.findElementByName
      1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
      2. org.openqa.selenium.remote.RemoteWebDriver.findElementByName(RemoteWebDriver.java:421)
      2 frames
    6. java-client
      IOSDriver.findElementByName
      1. io.appium.java_client.DefaultGenericMobileDriver.findElementByName(DefaultGenericMobileDriver.java:102)
      2. io.appium.java_client.AppiumDriver.findElementByName(AppiumDriver.java:1)
      3. io.appium.java_client.ios.IOSDriver.findElementByName(IOSDriver.java:1)
      3 frames
    7. selenium-api
      By$ByName.findElement
      1. org.openqa.selenium.By$ByName.findElement(By.java:300)
      1 frame
    8. selenium-support
      ByIdOrName.findElement
      1. org.openqa.selenium.support.ByIdOrName.findElement(ByIdOrName.java:50)
      1 frame
    9. Selenium
      RemoteWebDriver.findElement
      1. org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:340)
      1 frame
    10. java-client
      IOSDriver.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.ios.IOSDriver.findElement(IOSDriver.java:1)
      3 frames
    11. selenium-support
      LocatingElementHandler.invoke
      1. org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
      2. org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
      2 frames
    12. com.sun.proxy
      $Proxy12.click
      1. com.sun.proxy.$Proxy12.click(Unknown Source)
      1 frame
    13. com.mxyc.test
      AndroidAppTest.TC1_signIn
      1. com.mxyc.test.common.operateFactory.CommonMethod.click(CommonMethod.java:98)
      2. com.mxyc.test.testcase.AndroidAppTest.TC1_signIn(AndroidAppTest.java:45)
      2 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    15. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
      7. org.testng.TestRunner.privateRun(TestRunner.java:782)
      8. org.testng.TestRunner.run(TestRunner.java:632)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:268)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
      17. org.testng.TestNG.run(TestNG.java:1064)
      18. org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)
      20 frames