Class: Kreuzcrawl::PageActionPress

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
PageAction
Defined in:
lib/kreuzcrawl/native.rb

Overview

Press a keyboard key (e.g. “Enter”, “Tab”, “Escape”).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



297
298
299
# File 'lib/kreuzcrawl/native.rb', line 297

def key
  @key
end

Class Method Details

.from_hash(hash) ⇒ Object



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

def self.from_hash(hash)
  new(key: hash[:key] || hash["key"])
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = true

#scrape?Boolean

Returns:

  • (Boolean)


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

def scrape? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false