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



307
308
309
# File 'lib/kreuzcrawl/native.rb', line 307

def selector
  @selector
end

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

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


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

def scrape? = false

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = true

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false