Module: AxeWatir
- Defined in:
- lib/axe-watir.rb
Class Method Summary collapse
-
.configure(browser = :firefox) {|config| ... } ⇒ Object
configure method - which takes an optional argument browser - and a configuration block optional for Axe.
Class Method Details
.configure(browser = :firefox) {|config| ... } ⇒ Object
configure method
-
which takes an optional argument browser
-
and a configuration block optional for Axe
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/axe-watir.rb', line 8 def self.configure(browser = :firefox) # instantiate axe configuration (singleton) with defaults or given config if !block_given? raise Exception.new "Please provide a configure block for AxeWatir" end config = Axe::Configuration.instance # provide a watir webdriver page object config.page = get_driver(browser) # await and return yield config config end |