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
365 366 367 |
# File 'lib/kreuzcrawl/native.rb', line 365 def milliseconds @milliseconds end |
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
365 366 367 |
# File 'lib/kreuzcrawl/native.rb', line 365 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
394 395 396 |
# File 'lib/kreuzcrawl/native.rb', line 394 def self.from_hash(hash) new(milliseconds: hash[:milliseconds] || hash["milliseconds"], selector: hash[:selector] || hash["selector"]) end |
Instance Method Details
#click? ⇒ Boolean
376 |
# File 'lib/kreuzcrawl/native.rb', line 376 def click? = false |
#execute_js? ⇒ Boolean
388 |
# File 'lib/kreuzcrawl/native.rb', line 388 def execute_js? = false |
#press? ⇒ Boolean
380 |
# File 'lib/kreuzcrawl/native.rb', line 380 def press? = false |
#scrape? ⇒ Boolean
390 391 392 |
# File 'lib/kreuzcrawl/native.rb', line 390 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
386 |
# File 'lib/kreuzcrawl/native.rb', line 386 def screenshot? = false |
#scroll? ⇒ Boolean
382 |
# File 'lib/kreuzcrawl/native.rb', line 382 def scroll? = false |
#type_text? ⇒ Boolean
378 |
# File 'lib/kreuzcrawl/native.rb', line 378 def type_text? = false |
#wait? ⇒ Boolean
384 |
# File 'lib/kreuzcrawl/native.rb', line 384 def wait? = true |