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



396
397
398
# File 'lib/kreuzcrawl/native.rb', line 396

def full_page
  @full_page
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


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

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

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = true

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false