Class: Applitools::Selenium::Eyes
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Applitools::Selenium::Eyes
- Defined in:
- lib/applitools/selenium/eyes.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Eyes
constructor
A new instance of Eyes.
Constructor Details
#initialize(*args) ⇒ Eyes
Returns a new instance of Eyes.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/applitools/selenium/eyes.rb', line 5 def initialize(*args) = Applitools::Utils.(args) server_url = .delete(:server_url) server_url = args.first unless server_url runner = .delete(:visual_grid_runner) || .delete(:runner) if runner.is_a? Applitools::Selenium::VisualGridRunner super Applitools::Selenium::VisualGridEyes.new(runner, server_url) else super Applitools::Selenium::SeleniumEyes.new(server_url, runner: runner || Applitools::ClassicRunner.new) end end |