Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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
Tweet

More Decks by Og Maciel

Other Decks in Programming

Transcript

  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')