leviwilson / mohawk

MIT License
14 stars 8 forks source link

Way to define required controls for a screen #8

Closed leviwilson closed 10 years ago

leviwilson commented 10 years ago

It would be nice to have a required_controls method that you could define in a screen that would dynamically define wait_until_present for you.

class Screeen
  include Mohawk
  window title: 'Some Title'

  required_controls :add, :status

  button(:add, id: 'btnAdd')
  label(:status, id: 'lblStatus')
end