As I was typing in line 261 of very basic and repetitive Watir code, I
that much of this scripting should be able to be done declaratively,
especially when using the scripts to simply input values and check
responses. Has anyone done anything like this?

I envision an XML action list like:

<watirActions>
        <action type='text_field' how='id' method='set'
what='dateOfBirthTextBox' value='01/01/1980' />
        <action type='select_list' how='id' method='select'
what='stateDropDown' value='CA' />
        <action type='button' how='value' method='click' what='Submit'
/>
        <action type='expect_text' value='You live in California' />
        <action type='expect_html' value='<b>Birthdate: 01/01/1980</b>'
/>
</watirActions>

While this isn't much shorter than the actual script, it would allow for
automation opportunities. I envision being able to point a program at an
existing (completed) web page and have it analyze the page and generate
most of this code. This sort of approach seems a natural extension of
the Watir framework and I'm curious if anyone has attempted something
like this?

Thanks,

Brian
        

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to