Class: Kreuzcrawl::PageActionClick

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

Overview

Click on an element matching the given CSS selector.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectorObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



232
233
234
# File 'lib/kreuzcrawl/native.rb', line 232

def selector
  @selector
end

Class Method Details

.from_hash(hash) ⇒ Object



258
259
260
# File 'lib/kreuzcrawl/native.rb', line 258

def self.from_hash(hash)
  new(selector: hash[:selector] || hash["selector"])
end

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


240
# File 'lib/kreuzcrawl/native.rb', line 240

def click? = true

#execute_js?Boolean

Returns:

  • (Boolean)


252
# File 'lib/kreuzcrawl/native.rb', line 252

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


244
# File 'lib/kreuzcrawl/native.rb', line 244

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


254
255
256
# File 'lib/kreuzcrawl/native.rb', line 254

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

#screenshot?Boolean

Returns:

  • (Boolean)


250
# File 'lib/kreuzcrawl/native.rb', line 250

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


246
# File 'lib/kreuzcrawl/native.rb', line 246

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


242
# File 'lib/kreuzcrawl/native.rb', line 242

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


248
# File 'lib/kreuzcrawl/native.rb', line 248

def wait? = false