Class: Kreuzcrawl::PageActionWait

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

Overview

Wait for a duration or for an element to appear.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#millisecondsObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



442
443
444
# File 'lib/kreuzcrawl/native.rb', line 442

def milliseconds
  @milliseconds
end

#selectorObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



442
443
444
# File 'lib/kreuzcrawl/native.rb', line 442

def selector
  @selector
end

Class Method Details

.from_hash(hash) ⇒ Object



481
482
483
# File 'lib/kreuzcrawl/native.rb', line 481

def self.from_hash(hash)
  new(milliseconds: hash[:milliseconds] || hash["milliseconds"], selector: hash[:selector] || hash["selector"])
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


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

def scrape? = false

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = true