I have been working on this for some time now. I have refactored the code that was clustered in the 'watir.rb' so that much of it can be re-used. The interface for accessing the elements will remain the same. I used 'JSSh' for interacting with the browser. So far I am able to do the following things:
1. Successful run of all the unit tests written for IE. Just to check that refactoring the code doesn't break the existing thing.
2. TextField, Hidden, Button, Select list (with a little problem) can now be accessed in Firefox as well. All the unit-tests for these elements are running fine.
TODO:
1. Add support for other elements as well.
2. Currently you need to start Mozilla manually and tell JSSh to listen on port 9997 (default port). Need to automate this.
3. Not all selection mechanism are available in Mozilla (afterText, beforeText etc). Need to figure out a way to do this, if its that important.
At the end of this month or first week of March, I'll be releasing a version that will support the following things:
1. Support for Text Fields, Hidden, Buttons, Select List, Links, Radio & Checkboxes, Image, File Field elements.
2. _javascript_ pop ups (using AutoIt3) & Windows pop ups.
Tables, Frames , Forms & rest of the elements that are left will be available in the future releases.
Regards,
Angrez
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
