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}

Hot problem!
This exception has a lot of traffic. You can help 11 users by writing a short tip.

Solutions on the web8

Solution icon of github
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

Solution icon of github
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

Solution icon of github
documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52' System info: host: 'lenovo-PC', ip: '192.168.0.21', os.name: 'Windows 7

Solution icon of stackoverflow
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

Solution icon of github
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

Solution icon of stackoverflow
via Stack Overflow by Farha
, 5 months ago
Given xpath expression "//*[@href='#' AND text()='Publish Now']" is invalid For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html Build info: version: '3.3.1', revision: '5234b32', time

Solution icon of stackoverflow
invalid selector: Compound class names not permitted. *** Element info: {Using=class name, value=swatch-option color}

Solution icon of stackoverflow
invalid selector: Unable to locate an element with the xpath expression

Stack trace

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(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:678)
	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:363)
	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:461)
	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 org.openqa.selenium.By$ByName.findElement(By.java:303)
	at org.openqa.selenium.support.ByIdOrName.findElement(ByIdOrName.java:50)
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
	at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:52)
	at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)
	at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1)
	at com.codeborne.selenide.impl.WebElementSelector.findElement(WebElementSelector.java:28)
	at com.codeborne.selenide.impl.ElementFinder.getWebElement(ElementFinder.java:56)
	at com.codeborne.selenide.impl.WebElementSource.checkCondition(WebElementSource.java:44)
	at com.codeborne.selenide.impl.WebElementSource.findAndAssertElementIsVisible(WebElementSource.java:72)
	at com.codeborne.selenide.commands.Click.execute(Click.java:14)
	at com.codeborne.selenide.commands.Click.execute(Click.java:11)
	at com.codeborne.selenide.commands.Commands.execute(Commands.java:140)
	at com.codeborne.selenide.impl.SelenideElementProxy.dispatchAndRetry(SelenideElementProxy.java:86)
	at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:62)
	at com.sun.proxy.$Proxy28.click(Unknown Source)
	at com.ebuilder.qa.screens.SaveAndTransferScreen.moveToNewPhone(SaveAndTransferScreen.java:25)
	at com.ebuilder.qa.stepdefs.SecureStepDefs.move_to_newPhone(SecureStepDefs.java:50)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago