mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Move default_selector out of session. Closes #11
This commit is contained in:
parent
b187879751
commit
3f9950e09d
2 changed files with 5 additions and 9 deletions
|
@ -9,6 +9,11 @@ module Capybara
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
attr_accessor :debug, :asset_root
|
attr_accessor :debug, :asset_root
|
||||||
|
attr_writer :default_selector
|
||||||
|
|
||||||
|
def default_selector
|
||||||
|
@default_selector ||= :xpath
|
||||||
|
end
|
||||||
|
|
||||||
def log(message)
|
def log(message)
|
||||||
puts "[capybara] #{message}" if debug
|
puts "[capybara] #{message}" if debug
|
||||||
|
|
|
@ -1,13 +1,4 @@
|
||||||
module Capybara
|
module Capybara
|
||||||
|
|
||||||
class << self
|
|
||||||
attr_writer :default_selector
|
|
||||||
|
|
||||||
def default_selector
|
|
||||||
@default_selector ||= :xpath
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Session
|
class Session
|
||||||
|
|
||||||
FIELDS_PATHS = {
|
FIELDS_PATHS = {
|
||||||
|
|
Loading…
Reference in a new issue