Class: Applitools::Selenium::BrowsersInfo
- Inherits:
-
Set
- Object
- Set
- Applitools::Selenium::BrowsersInfo
- Defined in:
- lib/applitools/selenium/browsers_info.rb
Instance Method Summary collapse
Instance Method Details
#add(obj) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/applitools/selenium/browsers_info.rb', line 6 def add(obj) return super if obj.is_a? Applitools::Selenium::IRenderBrowserInfo raise( Applitools::EyesIllegalArgument, 'It is expected the value to be an Applitools::Selenium::RenderBrowserInfo instance,' \ " but got #{obj.class} instead" ) end |
#each(viewport_size = nil) {|default| ... } ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/applitools/selenium/browsers_info.rb', line 15 def each( = nil) return super() unless empty? return unless default = Applitools::Selenium::DesktopBrowserInfo.new.tap do |bi| bi. = bi.browser_type = BrowserTypes::CHROME end yield(default) end |
#to_hash ⇒ Object
25 26 27 28 29 30 |
# File 'lib/applitools/selenium/browsers_info.rb', line 25 def to_hash return nil if empty? map(&:to_hash) # require 'pry' # binding.pry end |