Class: ElementLoader

Inherits:
Loader
  • Object
show all
Defined in:
lib/shot_mvc/element_loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ElementLoader

Returns a new instance of ElementLoader.



14
15
16
17
# File 'lib/shot_mvc/element_loader.rb', line 14

def initialize(client)
	super(client)
	@type = 'element'
end

Instance Method Details

#get(selector) ⇒ Object



19
20
21
# File 'lib/shot_mvc/element_loader.rb', line 19

def get(selector)
	Element.from_app_and_selector @client, selector
end