Class: Crawlberg::PageActionPress
- Inherits:
-
Data
- Object
- Data
- Crawlberg::PageActionPress
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/crawlberg/native.rb
Overview
Press a keyboard key (e.g. "Enter", "Tab", "Escape").
Instance Attribute Summary collapse
-
#key ⇒ 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
#key ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
423 424 425 |
# File 'lib/crawlberg/native.rb', line 423 def key @key end |
Class Method Details
.from_hash(hash) ⇒ Object
449 450 451 |
# File 'lib/crawlberg/native.rb', line 449 def self.from_hash(hash) new(key: hash[:key] || hash["key"]) end |
Instance Method Details
#click? ⇒ Boolean
431 |
# File 'lib/crawlberg/native.rb', line 431 def click? = false |
#execute_js? ⇒ Boolean
443 |
# File 'lib/crawlberg/native.rb', line 443 def execute_js? = false |
#press? ⇒ Boolean
435 |
# File 'lib/crawlberg/native.rb', line 435 def press? = true |
#scrape? ⇒ Boolean
445 446 447 |
# File 'lib/crawlberg/native.rb', line 445 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
441 |
# File 'lib/crawlberg/native.rb', line 441 def screenshot? = false |
#scroll? ⇒ Boolean
437 |
# File 'lib/crawlberg/native.rb', line 437 def scroll? = false |
#type_text? ⇒ Boolean
433 |
# File 'lib/crawlberg/native.rb', line 433 def type_text? = false |
#wait? ⇒ Boolean
439 |
# File 'lib/crawlberg/native.rb', line 439 def wait? = false |