Class: Kreuzcrawl::PageActionTypeText

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectorObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



260
261
262
# File 'lib/kreuzcrawl/native.rb', line 260

def selector
  @selector
end

#textObject (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

Returns:

  • (Boolean)


271
# File 'lib/kreuzcrawl/native.rb', line 271

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


283
# File 'lib/kreuzcrawl/native.rb', line 283

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


275
# File 'lib/kreuzcrawl/native.rb', line 275

def press? = false

#scrape?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


281
# File 'lib/kreuzcrawl/native.rb', line 281

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


277
# File 'lib/kreuzcrawl/native.rb', line 277

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


273
# File 'lib/kreuzcrawl/native.rb', line 273

def type_text? = true

#wait?Boolean

Returns:

  • (Boolean)


279
# File 'lib/kreuzcrawl/native.rb', line 279

def wait? = false