stirno / FluentAutomation

Simple Fluent API for UI Automation
http://fluent.stirno.com
MIT License
234 stars 98 forks source link

Is there a way to record a script? #82

Open jfrank14 opened 10 years ago

jfrank14 commented 10 years ago

In Selenium IDE you can record an action and export it to a variety of formats, but fluent isn't one of them (and I would also want to have VB instead of C#, because that's what we use).

Recording is very nice, so you can let the tool do all the work of identifying page elements, id's, class names, etc. Can anyone suggest the best way to go about recording an action and generating the fluent code for it, or else to take the HTML format that Selenium IDE generates and create the fluent code from it?

pauljz commented 10 years ago

Good question. We were building a Fluent Automation Recorder Chrome extension a while back, but it's currently unmaintained and out of sync with Chrome's extension APIs. People generally seem pretty happy to just write tests directly, given the simplicity of Fluent Automation's syntax, so there wasn't a lot of enthusiasm surrounding the old recorder project.

It's still something we'd like to pick back up and release again some time soon, but it's a relatively low priority at the moment.

jfrank14 commented 10 years ago

Hmm, good to know. I ask because the web app testing I'm trying to automate has a manual test script that a tester follows, clicking and typing stuff. My life would be easier if this could simply be recorded, and then I would have the basis of automating what they do now.

It looks like there's Selenium Firefox plugin that does this, but saves the script in an HTML file (not XML, for some reason) and offers exports to various automated test syntaxes, but not this one. Do you have any sense of how hard it would be to write a program that would map this HTML file to the fluent syntax? That ought to be much easier than writing a whole recorder, but I don't want to go down that road if there be dragons there.

On 3/4/2014 6:08 PM, Paul Zumbrun wrote:

Good question. We were building a Fluent Automation Recorder Chrome extension a while back, but it's currently unmaintained and out of sync with Chrome's extension APIs. People generally seem pretty happy to just write tests directly, given the simplicity of Fluent Automation's syntax, so there wasn't a lot of enthusiasm surrounding the old recorder project.

It's still something we'd like to pick back up and release again some time soon, but it's a relatively low priority at the moment.


Reply to this email directly or view it on GitHub https://github.com/stirno/FluentAutomation/issues/82#issuecomment-36690723.