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



491
492
493
# File 'lib/crawlberg/native.rb', line 491

def self.from_hash(hash)
  new
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = false

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


487
488
489
# File 'lib/crawlberg/native.rb', line 487

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

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false