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
442 443 444 |
# File 'lib/kreuzcrawl/native.rb', line 442 def milliseconds @milliseconds end |
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
442 443 444 |
# File 'lib/kreuzcrawl/native.rb', line 442 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
481 482 483 |
# File 'lib/kreuzcrawl/native.rb', line 481 def self.from_hash(hash) new(milliseconds: hash[:milliseconds] || hash["milliseconds"], selector: hash[:selector] || hash["selector"]) end |
Instance Method Details
#click? ⇒ Boolean
455 |
# File 'lib/kreuzcrawl/native.rb', line 455 def click? = false |
#execute_js? ⇒ Boolean
473 |
# File 'lib/kreuzcrawl/native.rb', line 473 def execute_js? = false |
#press? ⇒ Boolean
461 |
# File 'lib/kreuzcrawl/native.rb', line 461 def press? = false |
#scrape? ⇒ Boolean
476 |
# File 'lib/kreuzcrawl/native.rb', line 476 def scrape? = false |
#screenshot? ⇒ Boolean
470 |
# File 'lib/kreuzcrawl/native.rb', line 470 def screenshot? = false |
#scroll? ⇒ Boolean
464 |
# File 'lib/kreuzcrawl/native.rb', line 464 def scroll? = false |
#type_text? ⇒ Boolean
458 |
# File 'lib/kreuzcrawl/native.rb', line 458 def type_text? = false |
#wait? ⇒ Boolean
467 |
# File 'lib/kreuzcrawl/native.rb', line 467 def wait? = true |