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



559
560
561
# File 'lib/crawlberg/native.rb', line 559

def self.from_hash(hash)
  new
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


555
556
557
# File 'lib/crawlberg/native.rb', line 555

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

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false