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
260 261 262 |
# File 'lib/kreuzcrawl/native.rb', line 260 def selector @selector end |
#text ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
260 261 262 |
# File 'lib/kreuzcrawl/native.rb', line 260 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
289 290 291 |
# File 'lib/kreuzcrawl/native.rb', line 289 def self.from_hash(hash) new(selector: hash[:selector] || hash["selector"], text: hash[:text] || hash["text"]) end |
Instance Method Details
#click? ⇒ Boolean
271 |
# File 'lib/kreuzcrawl/native.rb', line 271 def click? = false |
#execute_js? ⇒ Boolean
283 |
# File 'lib/kreuzcrawl/native.rb', line 283 def execute_js? = false |
#press? ⇒ Boolean
275 |
# File 'lib/kreuzcrawl/native.rb', line 275 def press? = false |
#scrape? ⇒ Boolean
285 286 287 |
# File 'lib/kreuzcrawl/native.rb', line 285 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
281 |
# File 'lib/kreuzcrawl/native.rb', line 281 def screenshot? = false |
#scroll? ⇒ Boolean
277 |
# File 'lib/kreuzcrawl/native.rb', line 277 def scroll? = false |
#type_text? ⇒ Boolean
273 |
# File 'lib/kreuzcrawl/native.rb', line 273 def type_text? = true |
#wait? ⇒ Boolean
279 |
# File 'lib/kreuzcrawl/native.rb', line 279 def wait? = false |