module Marta
Marta
class is providing three simple methods.
const_missing is hijacked. And in a learn mode marta will treat any unknown constant as an unknown pageobject and will try to ask about using browser
Constants
- NAME
- VERSION
Public Instance Methods
dance_with(browser: nil, folder: nil, learn: nil, tolerancy: nil, base_url: nil, cold_timeout: nil, port: nil, clear: nil)
click to toggle source
dance_with
is for creating settings to be used later. Settings can be changed at any time by calling dance with. Read more in the README
# File lib/marta.rb, line 59 def dance_with(browser: nil, folder: nil, learn: nil, tolerancy: nil, base_url: nil, cold_timeout: nil, port: nil, clear: nil) SettingMaster.clear if clear SettingMaster.set_port port # We are always turning the server on in order to show Welcome! SettingMaster.set_server # server should be before browser SettingMaster.set_engine browser # browser should be before learn! SettingMaster.set_learn learn SettingMaster.set_folder folder SettingMaster.set_base_url base_url read_folder SettingMaster.set_tolerancy tolerancy SettingMaster.set_cold_timeout cold_timeout engine end
engine()
click to toggle source
Marta
is returning an engine (it should be a browser instance) Watir::Browser.new(:chrome) by default
# File lib/marta.rb, line 52 def engine SettingMaster.engine end