Introducing WebSmith

Og Maciel
September 27, 2017

Introducing WebSmith

Introducing WebSmith, a Domain Specific Language (DSL) for Web UI Testing.

Og Maciel

September 27, 2017

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

8 slides
  1. The problem Writing code for web automation can lead to

    lengthy code Lots of repetition for basically doing the same thing (i.e. find element, if element is found, then do something with it; wait for some event to happen)
  2. The solution Abstract most types of web interactions. Expose ‘verbs’

    that are easy to understand/use: • Go • Select • Check • Hover
  3. WebSmith https://github.com/omaciel/websmith Assuming that you have a WebDriver browser object,

    then: from websmith.actions import Go, SendKeys from websmith.ui import Session with Session(browser): Go('https://www.google.com') SendKeys('q', 'WebSmith')

More Decks by Og Maciel

Other Decks in Programming