简体   繁体   English

Zucchini Run:找不到屏幕的锚点

[英]Zucchini Run: Could not find anchor for screen

When i run " zucchini run features/ " on my local mac machine, the command is getting executed but when am running the same through remote ssh to the same machine it is giving " Could not find anchor for screen 'PINScreen' on line 615 of feature.js " error. 当我在我的本地mac机器上运行“ zucchini run features / ”时,该命令正在执行,但是当我通过远程ssh运行相同的机器时,它正在“ 无法找到屏幕上的'PINScreen的锚''的第615行feature.js “错误。

error is as follows: 错误如下:

zucchini run features/
Failed to authorize rights (0x2) with status: -60007.
Failed to authorize rights (0x2) with status: -60007.
2013-12-12 18:37:23.983 ScriptAgent[3473:2f07] CLTilesManagerClient: initialize, sSharedTilesManagerClient

2013-12-12 18:37:23.983 ScriptAgent[3473:2f07] CLTilesManagerClient: init
2013-12-12 18:37:23.984 ScriptAgent[3473:2f07] CLTilesManagerClient: reconnecting, 0x97f4030
2013-12-12 18:37:24.147 ScriptAgent[3473:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:3467
2013-12-12 18:37:24.156 ScriptAgent[3473:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:3467
2013-12-12 13:07:24 +0000 Debug: target.setDeviceOrientation("1")
2013-12-12 13:07:29 +0000 Error: Script threw an uncaught JavaScript error: Could not find anchor for screen 'PINScreen' on line 615 of feature.js
2013-12-12 13:07:29 +0000 Stopped: Script was stopped by the user
Instruments Trace Complete (Duration : 17.254980s; Output : /Users/jebastalin/Desktop/ZucchiniNew/FileViewer/instrumentscli0.trace)
1..1
not ok 1 - feature
    1..0
    Bail out! Instruments run error

TAP report generated to /tmp/zucchini.t
HTML report generated to /tmp/zucchini_report.html
[SSH] exit-status: 1

So, hoe can I successfully run the "zucchini run" command from remote login? 那么,我可以从远程登录成功运行“zucchini run”命令吗?

将显示元素放在您调用屏幕的西葫芦脚本上方,这可以解决您的问题。

I have found that if I encounter lines similar to the following in the logs: 我发现如果我在日志中遇到类似于以下内容的行:

2014-05-01 14:17:43.915 ScriptAgent[14082:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:14073
2014-05-01 14:17:43.925 ScriptAgent[14082:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:14073

This will cause good code to fail. 这将导致良好的代码失败。 The remedy I've been using is to quit the iOS simulator (and also Instruments.app). 我一直在使用的补救措施是退出iOS模拟器(以及Instruments.app)。 After closing both out, re-run Zucchini, and without changing any of my code everything now works. 关闭后,重新运行Zucchini,并且不更改我的任何代码现在一切正常。

I can't say that this is the fix, but it has worked all the times I can remember. 我不能说这固定的,但它一直我能记得的所有时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 连接后无法在主机上正确运行脚本 - Could not run Script properly on host after connecting 在conda环境中运行屏幕jupyter笔记本 - Run screen jupyter notebook in a conda environment 在不使用屏幕的情况下在后台运行ruby脚本 - Run ruby script in background without using screen 使用SSH时BASH无法运行查找 - BASH cannot run find when using ssh docker run找不到名称标志参数 - docker run cannot find name flag argument 找不到有效的gem:证书验证失败 - Could not find valid gem: certificate verify failed 在BASH中的不同主机上通过SSH运行多个find命令 - Run multiple find command over ssh on different hosts in BASH 如何调试 Jenkins 错误消息“找不到合适的 ssh-agent 提供商”? - How to debug Jenkins error message “could not find a suitable ssh-agent provider”? 如何使用 sshpass 在 Gitlab CI 管道中运行远程命令并打印输出/取决于该命令的结果? - How could I run a remote command within a Gitlab CI Pipeline using sshpass and print the output/depend on the result of that command? Shell脚本在后台使用ssh远程运行命令whit nohup,但是无法关闭此ssh进程。 但是我用的屏幕都完美 - shell script use ssh remote run command whit nohup in the background,but this ssh process can not be close. but I use the screen is all perfect
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM