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



619
620
621
# File 'lib/crawlberg/native.rb', line 619

def self.from_hash(hash)
  new
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


615
616
617
# File 'lib/crawlberg/native.rb', line 615

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

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false