Class: Kreuzcrawl::PageActionTypeText
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::PageActionTypeText
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/kreuzcrawl/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
307 308 309 |
# File 'lib/kreuzcrawl/native.rb', line 307 def selector @selector end |
#text ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
307 308 309 |
# File 'lib/kreuzcrawl/native.rb', line 307 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
346 347 348 |
# File 'lib/kreuzcrawl/native.rb', line 346 def self.from_hash(hash) new(selector: hash[:selector] || hash["selector"], text: hash[:text] || hash["text"]) end |
Instance Method Details
#click? ⇒ Boolean
320 |
# File 'lib/kreuzcrawl/native.rb', line 320 def click? = false |
#execute_js? ⇒ Boolean
338 |
# File 'lib/kreuzcrawl/native.rb', line 338 def execute_js? = false |
#press? ⇒ Boolean
326 |
# File 'lib/kreuzcrawl/native.rb', line 326 def press? = false |
#scrape? ⇒ Boolean
341 |
# File 'lib/kreuzcrawl/native.rb', line 341 def scrape? = false |
#screenshot? ⇒ Boolean
335 |
# File 'lib/kreuzcrawl/native.rb', line 335 def screenshot? = false |
#scroll? ⇒ Boolean
329 |
# File 'lib/kreuzcrawl/native.rb', line 329 def scroll? = false |
#type_text? ⇒ Boolean
323 |
# File 'lib/kreuzcrawl/native.rb', line 323 def type_text? = true |
#wait? ⇒ Boolean
332 |
# File 'lib/kreuzcrawl/native.rb', line 332 def wait? = false |