Class: Crawlberg::PageActionClick
- Inherits:
-
Data
- Object
- Data
- Crawlberg::PageActionClick
- Extended by:
- T::Sig
- Includes:
- PageAction
- Defined in:
- lib/crawlberg/native.rb
Overview
Click on an element matching the given CSS selector.
Instance Attribute Summary collapse
-
#selector ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #click? ⇒ Boolean
- #execute_js? ⇒ Boolean
- #press? ⇒ Boolean
- #scrape? ⇒ Boolean
- #screenshot? ⇒ Boolean
- #scroll? ⇒ Boolean
- #type_text? ⇒ Boolean
- #wait? ⇒ Boolean
Instance Attribute Details
#selector ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
392 393 394 |
# File 'lib/crawlberg/native.rb', line 392 def selector @selector end |
Class Method Details
.from_hash(hash) ⇒ Object
419 420 421 |
# File 'lib/crawlberg/native.rb', line 419 def self.from_hash(hash) new(selector: hash[:selector] || hash["selector"]) end |
Instance Method Details
#click? ⇒ Boolean
401 |
# File 'lib/crawlberg/native.rb', line 401 def click? = true |
#execute_js? ⇒ Boolean
413 |
# File 'lib/crawlberg/native.rb', line 413 def execute_js? = false |
#press? ⇒ Boolean
405 |
# File 'lib/crawlberg/native.rb', line 405 def press? = false |
#scrape? ⇒ Boolean
415 416 417 |
# File 'lib/crawlberg/native.rb', line 415 def scrape? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#screenshot? ⇒ Boolean
411 |
# File 'lib/crawlberg/native.rb', line 411 def screenshot? = false |
#scroll? ⇒ Boolean
407 |
# File 'lib/crawlberg/native.rb', line 407 def scroll? = false |
#type_text? ⇒ Boolean
403 |
# File 'lib/crawlberg/native.rb', line 403 def type_text? = false |
#wait? ⇒ Boolean
409 |
# File 'lib/crawlberg/native.rb', line 409 def wait? = false |