Prototype Tool for Configurable Selenium Code Generation
summary
Prototype command-line tool that hits a URL, loads the DOM, and spits out configurable page-object code in multiple languages; it currently generates ID and CSS locators via a custom CSS-selector algorithm and emits templated member and method code so it generates compilable page objects. Output is controlled by code templates and an analysis file that lists candidate elements for selective generation. Works on large sites (CNN, BBC, gov) as a prototype; GUI, crawler and API are planned.
AI-written summary · about
chapters (15)
- 0:00A Prototype Tool for Configurable Selenium Code Generation
- 3:34Issues with Writing Selenium
- 6:37And the Human Can...
- 7:35A Tool Could...
- 8:08Variable and Method Names
- 8:51Page Object Name
- 9:12Configurations
- 10:15Code Templates
- 11:14Code Template File Example
- 13:57Command-line Params
- 21:03Analysis File Example
- 23:50Testing the Generator
- 30:14Tricky ToDos !!
- 32:10Future Goals
- 32:55My Contact Info
related talks
29mEffective user interface design with HTML prototyping
42mAutomated CSS Testing
43mBrowser Testing using Grammars and a Consensus Oracle
41mMake yourself comfortable and leverage Selenium with Python
46mSelenium: State of the Union
26mRapid Templating: "Designing in the Browser" with Sass, Compass, and Serve
40mSelenium and the Four Rules of Simple Design
26mCodeless Visual Testing
