Class: Crawlberg::PageActionScrape

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

Overview

Scrape the current page HTML.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



532
533
534
# File 'lib/crawlberg/native.rb', line 532

def self.from_hash(hash)
  new
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


514
# File 'lib/crawlberg/native.rb', line 514

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


526
# File 'lib/crawlberg/native.rb', line 526

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


518
# File 'lib/crawlberg/native.rb', line 518

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


528
529
530
# File 'lib/crawlberg/native.rb', line 528

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

#screenshot?Boolean

Returns:

  • (Boolean)


524
# File 'lib/crawlberg/native.rb', line 524

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


520
# File 'lib/crawlberg/native.rb', line 520

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


516
# File 'lib/crawlberg/native.rb', line 516

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


522
# File 'lib/crawlberg/native.rb', line 522

def wait? = false