更新时间:2023-02-08 10:48:00
请参阅Selenium RC文档的Python部分: http://seleniumhq.org/docs/05_selenium_rc.html#python
See the Python section of the Selenium RC documentation: http://seleniumhq.org/docs/05_selenium_rc.html#python
您也许可以从Jython运行Selenium测试.在这种情况下,您只需将Selenium脚本集成到Sikuli脚本中即可.
You may be able to run Selenium tests from Jython. In that case, you can simply integrate Selenium scripts into your Sikuli scripts.
在Sikuli IDE中尝试以下操作.您可能需要修改import语句以指向Selenium项目中的特定文件.
Try the following in the Sikuli IDE. You may need to modify the import statements to point to specific files in the Selenium project.
from selenium import selenium # this will probably need tweaking...
slm = selenium("localhost", 4444, "*firefox", "http://www.google.com/")
slm.start()
# etc...
此人似乎已经成功控制了Jython的硒: http://adam.goucher.ca /?p = 367
This guy appears to have had success controlling Selenium from Jython: http://adam.goucher.ca/?p=367
我的结论:呆在Jython并从那里控制Selenium可能是最容易的.您可以将这两个工具集成到一个脚本中.
My conclusion: it will probably be easiest to stay in Jython and control Selenium from there. You could integrate both tools into a single script.