Class: LookbookVisualTester::Driver
- Inherits:
-
Object
- Object
- LookbookVisualTester::Driver
show all
- Defined in:
- lib/lookbook_visual_tester/driver.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ Driver
Returns a new instance of Driver.
5
6
7
|
# File 'lib/lookbook_visual_tester/driver.rb', line 5
def initialize(config)
@config = config
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3
4
5
|
# File 'lib/lookbook_visual_tester/driver.rb', line 3
def config
@config
end
|
Instance Method Details
#cleanup ⇒ Object
47
48
49
|
# File 'lib/lookbook_visual_tester/driver.rb', line 47
def cleanup
raise NotImplementedError
end
|
#inject_style(css) ⇒ Object
17
18
19
|
# File 'lib/lookbook_visual_tester/driver.rb', line 17
def inject_style(css)
raise NotImplementedError
end
|
#mask_elements(selectors) ⇒ Object
25
26
27
|
# File 'lib/lookbook_visual_tester/driver.rb', line 25
def mask_elements(selectors)
raise NotImplementedError
end
|
#resize_window(width, height) ⇒ Object
13
14
15
|
# File 'lib/lookbook_visual_tester/driver.rb', line 13
def resize_window(width, height)
raise NotImplementedError
end
|
#run_script(script) ⇒ Object
21
22
23
|
# File 'lib/lookbook_visual_tester/driver.rb', line 21
def run_script(script)
raise NotImplementedError
end
|
#save_screenshot(path) ⇒ Object
43
44
45
|
# File 'lib/lookbook_visual_tester/driver.rb', line 43
def save_screenshot(path)
raise NotImplementedError
end
|
#visit(url) ⇒ Object
9
10
11
|
# File 'lib/lookbook_visual_tester/driver.rb', line 9
def visit(url)
raise NotImplementedError
end
|
#wait_for_assets ⇒ Object
Smart wait implementation
30
31
32
33
|
# File 'lib/lookbook_visual_tester/driver.rb', line 30
def wait_for_assets
wait_for_fonts
wait_for_network_idle
end
|
#wait_for_fonts ⇒ Object
35
36
37
|
# File 'lib/lookbook_visual_tester/driver.rb', line 35
def wait_for_fonts
raise NotImplementedError
end
|
#wait_for_network_idle ⇒ Object
39
40
41
|
# File 'lib/lookbook_visual_tester/driver.rb', line 39
def wait_for_network_idle
raise NotImplementedError
end
|