Mac App Sandbox和USB设备卸载

时间:2016-02-17 14:42:05

标签: macos sandbox appstore-sandbox entitlements diskarbitration

我需要在沙箱应用程序中卸载Objective-C中的USB设备。

对于卸载我使用:

Test method SDTestAutomation.Users_Tests.Users_NewUser threw exception: 
OpenQA.Selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":".//*[@id='tab-1']/fieldset[2]/div[1]/div[11]/span/span/a[1]"}
Result StackTrace:  
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath(String xpath)
   at OpenQA.Selenium.By.<>c__DisplayClasse.<XPath>b__c(ISearchContext context)
   at OpenQA.Selenium.By.FindElement(ISearchContext context)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)
   at SmartDebitTestFramework.Users.SetRole(String[] roles)
来自DiskArbitration的

一切正常,直到我激活沙盒。使用沙盒时,unmount(DiskUnmountCallback)会返回失败。

我无法找到设备卸载的沙盒权利设置,也无法找到该问题的任何其他原因。

在我激活的权利中&#34; com.apple.security.device.usb&#34;但我仍然无法卸载USB设备。

0 个答案:

没有答案