Class: Kreuzcrawl::PageActionScreenshot

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
PageAction
Defined in:
lib/kreuzcrawl/native.rb

Overview

Take a screenshot of the current page.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#full_pageObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



487
488
489
# File 'lib/kreuzcrawl/native.rb', line 487

def full_page
  @full_page
end

Class Method Details

.from_hash(hash) ⇒ Object



526
527
528
# File 'lib/kreuzcrawl/native.rb', line 526

def self.from_hash(hash)
  new(full_page: hash[:full_page] || hash["full_page"])
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


500
# File 'lib/kreuzcrawl/native.rb', line 500

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


518
# File 'lib/kreuzcrawl/native.rb', line 518

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


506
# File 'lib/kreuzcrawl/native.rb', line 506

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


521
# File 'lib/kreuzcrawl/native.rb', line 521

def scrape? = false

#screenshot?Boolean

Returns:

  • (Boolean)


515
# File 'lib/kreuzcrawl/native.rb', line 515

def screenshot? = true

#scroll?Boolean

Returns:

  • (Boolean)


509
# File 'lib/kreuzcrawl/native.rb', line 509

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


503
# File 'lib/kreuzcrawl/native.rb', line 503

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


512
# File 'lib/kreuzcrawl/native.rb', line 512

def wait? = false