如何从 Web 应用程序调用 watir 脚本?

发布于 2024-11-01 06:54:03 字数 56 浏览 6 评论 0原文

我有一个 watir 脚本,我必须在调用脚本的同一个浏览器上从 Web 界面运行该脚本。是否可以?

I have a watir script ,that i have to run from a web interface, on the same browser invoking the scripts. Is it possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

超可爱的懒熊 2024-11-08 06:54:03

这是不可能的,因为浏览器不理解 ruby​​ 是什么。

This isn't possible to do, as a browser doesn't understand what ruby is.

凯凯我们等你回来 2024-11-08 06:54:03

我相信这是可能的。我一直打算使用 PHP 开始一个与 adithi 想做的类似的项目。在 PHP 中,您可以使用 shell_exec 命令或反引号运算符在 shell 中执行命令。 ruby 使用 put 返回输出,PHP 可以读取该输出。

http://chipmunkninja.com/Program-Execution-in-PHP% 3A-exec-m@ 似乎是详细介绍此技术的一个很好的页面。

I believe that it is possible. I've been intending to begin a similar project to what adithi wanted to do at some point, using PHP. From PHP, you can use the shell_exec command or backtick operator to execute commands in the shell. The ruby returns output using puts, which can be read by the PHP.

http://chipmunkninja.com/Program-Execution-in-PHP%3A-exec-m@ seems to be a good page detailing this technique.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文