I m working on subject and have faced the problem.
Suppose there are some script file(test steps list),

<push button id="button_id" />
<input text id="text_id" value="some_text" />
...

First step is to parse script and produce Page object.
The second - is to go through a script and perform test actions with a web page.
Framework based on selenium web driver. I dont know how to implement the second part, any ideas ?