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)