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
393 394 395 |
# File 'lib/kreuzcrawl/native.rb', line 393 def amount @amount end |
#direction ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
393 394 395 |
# File 'lib/kreuzcrawl/native.rb', line 393 def direction @direction end |
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
393 394 395 |
# File 'lib/kreuzcrawl/native.rb', line 393 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
436 437 438 |
# File 'lib/kreuzcrawl/native.rb', line 436 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
410 |
# File 'lib/kreuzcrawl/native.rb', line 410 def click? = false |
#execute_js? ⇒ Boolean
428 |
# File 'lib/kreuzcrawl/native.rb', line 428 def execute_js? = false |
#press? ⇒ Boolean
416 |
# File 'lib/kreuzcrawl/native.rb', line 416 def press? = false |
#scrape? ⇒ Boolean
431 |
# File 'lib/kreuzcrawl/native.rb', line 431 def scrape? = false |
#screenshot? ⇒ Boolean
425 |
# File 'lib/kreuzcrawl/native.rb', line 425 def screenshot? = false |
#scroll? ⇒ Boolean
419 |
# File 'lib/kreuzcrawl/native.rb', line 419 def scroll? = true |
#type_text? ⇒ Boolean
413 |
# File 'lib/kreuzcrawl/native.rb', line 413 def type_text? = false |
#wait? ⇒ Boolean
422 |
# File 'lib/kreuzcrawl/native.rb', line 422 def wait? = false |