diff options
Diffstat (limited to 'qa/qa/page/base.rb')
-rw-r--r-- | qa/qa/page/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/page/base.rb b/qa/qa/page/base.rb index c60e9bfd40a..d1641565bad 100644 --- a/qa/qa/page/base.rb +++ b/qa/qa/page/base.rb @@ -40,6 +40,10 @@ module QA page.within(selector) { yield } if block_given? end + def click_element(name) + find("qa-#{name.tr('_', '-')}").click + end + def self.path raise NotImplementedError end |