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



294
295
296
# File 'lib/kreuzcrawl/native.rb', line 294

def key
  @key
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = true

#scrape?Boolean

Returns:

  • (Boolean)


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

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

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false