Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos mac上的键盘启用异常_Macos_Appium - Fatal编程技术网

Macos mac上的键盘启用异常

Macos mac上的键盘启用异常,macos,appium,Macos,Appium,sendkeys()面临此问题。尝试通过以下方式隐藏keboard: Exception in thread "main" org.openqa.selenium.WebDriverException: Could not locate keyboard. (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 23.96 seconds

sendkeys()面临此问题。

尝试通过以下方式隐藏keboard:

    Exception in thread "main" org.openqa.selenium.WebDriverException:
    Could not locate keyboard. (WARNING: The server did not provide any
    stacktrace information) Command duration or timeout: 23.96 seconds
    Build info: version: '2.53.0', revision: '35ae25b', time:
    '2016-03-15 16:57:40' System info: host: 'QAs-iMac.local', ip:
    '192.168.0.128', os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
    '10.11.4', java.version: '1.8.0_91' Driver info:
    org.openqa.selenium.remote.RemoteWebDriver Capabilities
    [{app=/Users/qa/Desktop/QA Team /pankaj/mac/Boku-1.ipa,
    appPackage=com.boku, networkConnectionEnabled=false,
    appWaitActivity=ui.activities.TutorialActivity,
    databaseEnabled=false, deviceName=iPhone 6, fullReset=true,
    platform=MAC, appActivity=ui.activities.SplashActivity,
    showIOSLog=true, appium-version=1.5.1,
    desired={app=/Users/qa/Desktop/QA Team /pankaj/mac/Boku-1.ipa,
    appPackage=com.boku, appActivity=ui.activities.SplashActivity,
    showIOSLog=true, appium-version=1.5.1, platformVersion=9.3.1,
    appWaitActivity=ui.activities.TutorialActivity, platformName=iOS,
    udid=a87a03d1680a6cfd142829db9b01da43019b278f, deviceName=iPhone 6,
    fullReset=true}, platformVersion=9.3.1, webStorageEnabled=false,
    locationContextEnabled=false, browserName=, takesScreenshot=true,
    javascriptEnabled=true, platformName=iOS,
    udid=a87a03d1680a6cfd142829db9b01da43019b278f}] Session ID:
    89125084-e649-40f1-ba95-a738ba417521  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:423) 
    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
    org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
    at
    org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:122)
    at Boku.Bokumain.main(Bokumain.java:188)

你好,埃姆娜,,,太好了,这对我来说也很有用..但我还有一个问题,我想处理系统生成的警报,以允许真实设备中的联系人、摄像头和位置在单独的问题中提问,所以这是关于键盘的;)我想处理系统生成的警报,以允许在ios设备中使用位置、摄像头和联系人,即使我使用了(autoAcceptAlert,true),但它不起作用
capabilities.setCapability("unicodekeyboard", true);
capabilities.setCapability("resetkeyboard", true);