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



352
353
354
# File 'lib/kreuzcrawl/native.rb', line 352

def key
  @key
end

Class Method Details

.from_hash(hash) ⇒ Object



387
388
389
# File 'lib/kreuzcrawl/native.rb', line 387

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

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = true

#scrape?Boolean

Returns:

  • (Boolean)


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

def scrape? = false

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false