Class: Crawlberg::PageActionWait
- Inherits:
-
Data
- Object
- Data
- Crawlberg::PageActionWait
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/crawlberg/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
491 492 493 |
# File 'lib/crawlberg/native.rb', line 491 def milliseconds @milliseconds end |
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
491 492 493 |
# File 'lib/crawlberg/native.rb', line 491 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
520 521 522 |
# File 'lib/crawlberg/native.rb', line 520 def self.from_hash(hash) new(milliseconds: hash[:milliseconds] || hash["milliseconds"], selector: hash[:selector] || hash["selector"]) end |
Instance Method Details
#click? ⇒ Boolean
502 |
# File 'lib/crawlberg/native.rb', line 502 def click? = false |
#execute_js? ⇒ Boolean
514 |
# File 'lib/crawlberg/native.rb', line 514 def execute_js? = false |
#press? ⇒ Boolean
506 |
# File 'lib/crawlberg/native.rb', line 506 def press? = false |
#scrape? ⇒ Boolean
516 517 518 |
# File 'lib/crawlberg/native.rb', line 516 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
512 |
# File 'lib/crawlberg/native.rb', line 512 def screenshot? = false |
#scroll? ⇒ Boolean
508 |
# File 'lib/crawlberg/native.rb', line 508 def scroll? = false |
#type_text? ⇒ Boolean
504 |
# File 'lib/crawlberg/native.rb', line 504 def type_text? = false |
#wait? ⇒ Boolean
510 |
# File 'lib/crawlberg/native.rb', line 510 def wait? = true |