Class: Kreuzcrawl::PageActionWait
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::PageActionWait
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
Wait for a duration or for an element to appear.
Instance Attribute Summary collapse
-
#milliseconds ⇒ 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
#milliseconds ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
362 363 364 |
# File 'lib/kreuzcrawl/native.rb', line 362 def milliseconds @milliseconds end |
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
362 363 364 |
# File 'lib/kreuzcrawl/native.rb', line 362 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
391 392 393 |
# File 'lib/kreuzcrawl/native.rb', line 391 def self.from_hash(hash) new(milliseconds: hash[:milliseconds] || hash["milliseconds"], selector: hash[:selector] || hash["selector"]) end |
Instance Method Details
#click? ⇒ Boolean
373 |
# File 'lib/kreuzcrawl/native.rb', line 373 def click? = false |
#execute_js? ⇒ Boolean
385 |
# File 'lib/kreuzcrawl/native.rb', line 385 def execute_js? = false |
#press? ⇒ Boolean
377 |
# File 'lib/kreuzcrawl/native.rb', line 377 def press? = false |
#scrape? ⇒ Boolean
387 388 389 |
# File 'lib/kreuzcrawl/native.rb', line 387 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
383 |
# File 'lib/kreuzcrawl/native.rb', line 383 def screenshot? = false |
#scroll? ⇒ Boolean
379 |
# File 'lib/kreuzcrawl/native.rb', line 379 def scroll? = false |
#type_text? ⇒ Boolean
375 |
# File 'lib/kreuzcrawl/native.rb', line 375 def type_text? = false |
#wait? ⇒ Boolean
381 |
# File 'lib/kreuzcrawl/native.rb', line 381 def wait? = true |