小编Mer*_*mis的帖子

资产目录编译错误 - TDDIstiller实例只能被提取一次

所以,我有一个我在Xcode中构建的应用程序,并且事情已经进行了一段时间.但是,我突然得到错误:

Images.xcassets: error: ERROR: Each TDDistiller instance can be distilled only one time!
Run Code Online (Sandbox Code Playgroud)

那么,有两个问题:

1)我不知道这意味着什么,显然谷歌,必应或雅虎也没有.

2)我不知道如何解决它.我几个月没有更改我的资产目录,所以我不知道是什么原因引入了这个错误.

以下是构建的错误日志:

2015-01-07 19:41:57.348 IBCocoaTouchImageCatalogTool[1226:17469] 
BOMStorage BOMStorageNewWithOptionsAndSys(const char *, 
CFDictionaryRef, BomSys *) can't open: 
'/Users/user/Library/Developer/Xcode/DerivedData/Videographer-
eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-
iphonesimulator/Videographer.app/Assets.car' Permission denied  2015-
01-07 19:41:57.349 IBCocoaTouchImageCatalogTool[1226:17469] Error: 
unable to create storage file 
/Users/user/Library/Developer/Xcode/DerivedData/Videographer-
eubeafyfmzewucdlcmfhmdsusjng/Build/Products/Debug-
iphonesimulator/Videographer.app/Assets.car error 'No such file or 
directory' /* com.apple.actool.errors */ 
/Users/user/Documents/Videographer/Videographer/Images.xcassets: 
error: ERROR: Each TDDistiller instance can be distilled only one 
time! /* com.apple.actool.document.notices */ 
Run Code Online (Sandbox Code Playgroud)

/Users/user/Documents/Videographer/Videographer/Images.xcassets:./AppIcon.appiconset/[iphone][57x57][1x]: notice: 57x57 app icons only apply …

xcode image objective-c ios

19
推荐指数
3
解决办法
5800
查看次数

使用Java的Selenium WebDriver和HTML Window位置

我正在将Selenium WebDriver与java.awt.Robot结合使用,以更好地模拟用户与Web应用程序的交互.是的,我知道这可能是不必要的,但我服务的客户要求它.

目前事情进展顺利,但我有一个小问题,我似乎找不到一个好的方法来获取屏幕位置的网页元素.标题栏,菜单栏,导航栏等内容都会将内容向下推到物理屏幕上(Robot从中获取坐标),但对Selenium报告元素的位置没有影响.

当我调用:element.getLocation();在Selenium WebElement上时,它总是给我相对于HTML内容呈现窗格的位置,而不是浏览器窗口本身.

更好的例证是:driver.findElement(By.tagName("body")).getLocation();无论窗口的实际屏幕位置如何,始终返回0,0.

现在我通过在最大化窗口后添加垂直和水平偏移来攻击它,但是这些在不同的浏览器之间是不一样的(例如,IE的顶部装饰占据了比Firefox更多的空间),并且对于每个用户可能是不同的如果他们有书签工具栏,搜索栏等添加.

是的,我知道我可以在全屏模式下运行,但是如果可能的话,我宁愿不这样做.

有没有办法使用WebDriver以可靠的方式获取元素的物理屏幕位置?

java selenium selenium-webdriver

12
推荐指数
2
解决办法
1万
查看次数

标签 统计

image ×1

ios ×1

java ×1

objective-c ×1

selenium ×1

selenium-webdriver ×1

xcode ×1