Module: AxeSelenium
- Defined in:
- lib/axe-selenium.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-selenium.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 AxeSelenium" end config = Axe::Configuration.instance # provide a selenium webdriver page object config.page = get_driver(browser) # await and return yield config config end |