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



399
400
401
# File 'lib/kreuzcrawl/native.rb', line 399

def full_page
  @full_page
end

Class Method Details

.from_hash(hash) ⇒ Object



429
430
431
# File 'lib/kreuzcrawl/native.rb', line 429

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

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


425
426
427
# File 'lib/kreuzcrawl/native.rb', line 425

def scrape? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = true

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false