Class: Crawlberg::PageActionTypeText
- Inherits:
-
Data
- Object
- Data
- Crawlberg::PageActionTypeText
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/crawlberg/native.rb
Overview
Type text into an element matching the given CSS selector.
Instance Attribute Summary collapse
-
#selector ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#text ⇒ 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
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
424 425 426 |
# File 'lib/crawlberg/native.rb', line 424 def selector @selector end |
#text ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
424 425 426 |
# File 'lib/crawlberg/native.rb', line 424 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
455 456 457 |
# File 'lib/crawlberg/native.rb', line 455 def self.from_hash(hash) new(selector: hash[:selector] || hash["selector"], text: hash[:text] || hash["text"]) end |
Instance Method Details
#click? ⇒ Boolean
437 |
# File 'lib/crawlberg/native.rb', line 437 def click? = false |
#execute_js? ⇒ Boolean
449 |
# File 'lib/crawlberg/native.rb', line 449 def execute_js? = false |
#press? ⇒ Boolean
441 |
# File 'lib/crawlberg/native.rb', line 441 def press? = false |
#scrape? ⇒ Boolean
451 452 453 |
# File 'lib/crawlberg/native.rb', line 451 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
447 |
# File 'lib/crawlberg/native.rb', line 447 def screenshot? = false |
#scroll? ⇒ Boolean
443 |
# File 'lib/crawlberg/native.rb', line 443 def scroll? = false |
#type_text? ⇒ Boolean
439 |
# File 'lib/crawlberg/native.rb', line 439 def type_text? = true |
#wait? ⇒ Boolean
445 |
# File 'lib/crawlberg/native.rb', line 445 def wait? = false |