How to automate Java applet?

2019-01-25 14:28发布

I have to create a test script and I am using Selenium, but I am not able to record or edit the rich text editor Ephox. So is there a way to do it with Selenium as I came across an article stating Java applets cannot be recorded using Selenium. Also if not Selenium any other tools that can be used for this purpose?

Here's the link for the Ephox for your reference : http://editlive.com/demo

2条回答
beautiful°
2楼-- · 2019-01-25 14:37

You can't reliably automate an applet using a web testing tool. You need to use a Swing testing tool. There are a few out there, but two I'd recommend are:

http://code.google.com/p/fest/

and

http://www.uispec4j.org/

The second one is also interesting because it allows you to write unit tests for the UI that don't require it being rendered on the screen.

查看更多
在下西门庆
3楼-- · 2019-01-25 14:58

LiveConnect can help you with that!

There is even a tool for it and Selenium (though I'm not using it, so I can't tell whether it works well or not): https://web.archive.org/web/20150526204052/http://fest.codehaus.org/Selenium

Other than that, Robot could possibly be useful, too.

查看更多
登录 后发表回答