Class: Kreuzcrawl::PageActionScroll
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::PageActionScroll
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
Scroll the page or a specific element.
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#direction ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#selector ⇒ 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
#amount ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
325 326 327 |
# File 'lib/kreuzcrawl/native.rb', line 325 def amount @amount end |
#direction ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
325 326 327 |
# File 'lib/kreuzcrawl/native.rb', line 325 def direction @direction end |
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
325 326 327 |
# File 'lib/kreuzcrawl/native.rb', line 325 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
357 358 359 |
# File 'lib/kreuzcrawl/native.rb', line 357 def self.from_hash(hash) new(direction: hash[:direction] || hash["direction"], selector: hash[:selector] || hash["selector"], amount: hash[:amount] || hash["amount"]) end |
Instance Method Details
#click? ⇒ Boolean
339 |
# File 'lib/kreuzcrawl/native.rb', line 339 def click? = false |
#execute_js? ⇒ Boolean
351 |
# File 'lib/kreuzcrawl/native.rb', line 351 def execute_js? = false |
#press? ⇒ Boolean
343 |
# File 'lib/kreuzcrawl/native.rb', line 343 def press? = false |
#scrape? ⇒ Boolean
353 354 355 |
# File 'lib/kreuzcrawl/native.rb', line 353 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
349 |
# File 'lib/kreuzcrawl/native.rb', line 349 def screenshot? = false |
#scroll? ⇒ Boolean
345 |
# File 'lib/kreuzcrawl/native.rb', line 345 def scroll? = true |
#type_text? ⇒ Boolean
341 |
# File 'lib/kreuzcrawl/native.rb', line 341 def type_text? = false |
#wait? ⇒ Boolean
347 |
# File 'lib/kreuzcrawl/native.rb', line 347 def wait? = false |