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



229
230
231
# File 'lib/kreuzcrawl/native.rb', line 229

def selector
  @selector
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#click?Boolean

Returns:

  • (Boolean)


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

def click? = true

#execute_js?Boolean

Returns:

  • (Boolean)


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

def execute_js? = false

#press?Boolean

Returns:

  • (Boolean)


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

def press? = false

#scrape?Boolean

Returns:

  • (Boolean)


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

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

#screenshot?Boolean

Returns:

  • (Boolean)


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

def screenshot? = false

#scroll?Boolean

Returns:

  • (Boolean)


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

def scroll? = false

#type_text?Boolean

Returns:

  • (Boolean)


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

def type_text? = false

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? = false