Class: Kreuzcrawl::PageActionScreenshot
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::PageActionScreenshot
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
Take a screenshot of the current page.
Instance Attribute Summary collapse
-
#full_page ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #click? ⇒ Boolean
- #execute_js? ⇒ Boolean
- #press? ⇒ Boolean
- #scrape? ⇒ Boolean
- #screenshot? ⇒ Boolean
- #scroll? ⇒ Boolean
- #type_text? ⇒ Boolean
- #wait? ⇒ Boolean
Instance Attribute Details
#full_page ⇒ Object (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
500 |
# File 'lib/kreuzcrawl/native.rb', line 500 def click? = false |
#execute_js? ⇒ Boolean
518 |
# File 'lib/kreuzcrawl/native.rb', line 518 def execute_js? = false |
#press? ⇒ Boolean
506 |
# File 'lib/kreuzcrawl/native.rb', line 506 def press? = false |
#scrape? ⇒ Boolean
521 |
# File 'lib/kreuzcrawl/native.rb', line 521 def scrape? = false |
#screenshot? ⇒ Boolean
515 |
# File 'lib/kreuzcrawl/native.rb', line 515 def screenshot? = true |
#scroll? ⇒ Boolean
509 |
# File 'lib/kreuzcrawl/native.rb', line 509 def scroll? = false |
#type_text? ⇒ Boolean
503 |
# File 'lib/kreuzcrawl/native.rb', line 503 def type_text? = false |
#wait? ⇒ Boolean
512 |
# File 'lib/kreuzcrawl/native.rb', line 512 def wait? = false |