I’m writing a Qt application that uses a QWebView to host the UI. Similar to the ImageAnalyzer example in the Qt SDK samples.
I would like to test this UI using an automated method. A scripting interface like Selenium Web-Driver would be preferable.
Any recommendations/examples on how to do this?
Edit:
I’m looking for a solution can identify HTML elements via classes and id’s so that it’s maintainable and robust to change.
Tools like Sikuli (which are appearance based), don’t satisfy this criterion. Note: I believe those are great for quick one-off scripting, they just don’t work very well across many different platforms/configurations and over time for my purpose.
So, I’m not sure this would satisfy your “Qt application that uses a QWebView” requirement, but when you say “I’m looking for a solution can identify HTML elements via classes and id’s so that it’s maintainable and robust to change.” I can think of WatiR (which is a “browser driver”).
It’s open source so perhaps you could adapt it to drive your application.
There is also a .Net version called WatiN, but then you are restricted to Windows.