Getting below error when tapping on sign in button using its name

Below description for login screen:Need to tap on sign in button.

name: Sign in
type: UIAButton
value:
label: Sign in
enabled: true
visible: false
valid: true
location: {194, 401}
size: {380, 40}
xpath: //UIAApplication[1]/UIAWindow[1]/UIAButton[6]

My Code: Driver.DRIVER.findElement(By.name(“Sign in”)).click();

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (Original error: The class name selector must use full UIA class names. Try ‘UIASign in’ instead.) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 8 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd’, time: ‘2015-10-09 19:55:52’
System info: host: ‘Shreeinfo35.local’, ip: ‘172.18.13.151’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.2’, java.version: ‘1.8.0_71’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{networkConnectionEnabled=false, warnings={}, databaseEnabled=false, deviceName=QC ipa, platform=MAC, desired={platformVersion=8.4.1s, platformName=iOS, deviceName=QC ipa}, platformVersion=8.4.1s, webStorageEnabled=false, locationContextEnabled=false, browserName=iOS, takesScreenshot=true, javascriptEnabled=true, platformName=iOS}]
Session ID: 4a24b718-1bf2-4c95-99dd-7b808a7e8968
*** Element info: {Using=class name, value=Sign in}
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:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(RemoteWebDriver.java:467)
at io.appium.java_client.DefaultGenericMobileDriver.findElementByClassName(DefaultGenericMobileDriver.java:110)
at io.appium.java_client.AppiumDriver.findElementByClassName(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.findElementByClassName(IOSDriver.java:1)
at org.openqa.selenium.By$ByClassName.findElement(By.java:391)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:345)
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.ios.IOSDriver.findElement(IOSDriver.java:1)
at com.reader.Login.Login.login(Login.java:51)

Hi,
this row said that you use className locator.

Is “My Code: Driver.DRIVER.findElement(By.name("Sign in")).click();” really your code?

Hi Degard,
my code is same.please refer below error i m getting.
can u please tell how to click on element by using its name.

My code:Driver.DRIVER.findElement(By.name(“Sign in”)).click();

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 3.77 seconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd’, time: ‘2015-10-09 19:55:52’
System info: host: ‘Shreeinfo35.local’, ip: ‘172.18.13.151’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.2’, java.version: ‘1.8.0_71’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{networkConnectionEnabled=false, warnings={}, databaseEnabled=false, deviceName=QC ipa, platform=MAC, desired={platformVersion=8.4.1s, platformName=iOS, deviceName=QC ipa}, platformVersion=8.4.1s, webStorageEnabled=false, locationContextEnabled=false, browserName=iOS, takesScreenshot=true, javascriptEnabled=true, platformName=iOS}]
Session ID: 0245b5e9-08ac-4fdc-93ab-7d22a6f90f97
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:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:326)
at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:44)
at io.appium.java_client.MobileElement.execute(MobileElement.java:1)
at io.appium.java_client.ios.IOSElement.execute(IOSElement.java:1)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at com.reader.Login.Login.login(Login.java:62)
… Removed 28 stack frames

What version of Appium?

appium version:1.3.6 (Ophiuchus)

Could you check if element is null before click?

now i am able to click using below xpath:
//UIAApplication//UIAButton[@name=‘Sign in’]

but y it is not clicking by name:

Could you try with 1.4.16?