Class: Capybara::Driver::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara/driver/node.rb

Direct Known Subclasses

RackTest::Node, Selenium::Node

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Node) initialize(driver, native)

Returns a new instance of Node



6
7
8
9
# File 'lib/capybara/driver/node.rb', line 6

def initialize(driver, native)
  @driver = driver
  @native = native
end

Instance Attribute Details

- (Object) driver (readonly)

Returns the value of attribute driver



4
5
6
# File 'lib/capybara/driver/node.rb', line 4

def driver
  @driver
end

- (Object) native (readonly)

Returns the value of attribute native



4
5
6
# File 'lib/capybara/driver/node.rb', line 4

def native
  @native
end

Instance Method Details

- (Object) ==(other)



94
95
96
# File 'lib/capybara/driver/node.rb', line 94

def ==(other)
  raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end

- (Object) [](name)

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/capybara/driver/node.rb', line 19

def [](name)
  raise NotImplementedError
end

- (Object) all_text

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/capybara/driver/node.rb', line 11

def all_text
  raise NotImplementedError
end

- (Boolean) checked?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


68
69
70
# File 'lib/capybara/driver/node.rb', line 68

def checked?
  raise NotImplementedError
end

- (Object) click

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/capybara/driver/node.rb', line 40

def click
  raise NotImplementedError
end

- (Boolean) disabled?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


76
77
78
# File 'lib/capybara/driver/node.rb', line 76

def disabled?
  raise NotImplementedError
end

- (Object) double_click

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/capybara/driver/node.rb', line 48

def double_click
  raise NotImplementedError
end

- (Object) drag_to(element)

Raises:

  • (NotImplementedError)


56
57
58
# File 'lib/capybara/driver/node.rb', line 56

def drag_to(element)
  raise NotImplementedError
end

- (Object) hover

Raises:

  • (NotImplementedError)


52
53
54
# File 'lib/capybara/driver/node.rb', line 52

def hover
  raise NotImplementedError
end

- (Object) inspect



88
89
90
91
92
# File 'lib/capybara/driver/node.rb', line 88

def inspect
  %(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError, 'Capybara::Driver::Node#inspect'
  %(#<#{self.class} tag="#{tag_name}">)
end

- (Object) path



80
81
82
# File 'lib/capybara/driver/node.rb', line 80

def path
  raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end

- (Object) right_click

Raises:

  • (NotImplmentedError)


44
45
46
# File 'lib/capybara/driver/node.rb', line 44

def right_click
  raise NotImplmentedError
end

- (Object) select_option

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/capybara/driver/node.rb', line 32

def select_option
  raise NotImplementedError
end

- (Boolean) selected?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


72
73
74
# File 'lib/capybara/driver/node.rb', line 72

def selected?
  raise NotImplementedError
end

- (Object) set(value)

Parameters:

  • value

    String or Array. Array is only allowed if node has 'multiple' attribute

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/capybara/driver/node.rb', line 28

def set(value)
  raise NotImplementedError
end

- (Object) tag_name

Raises:

  • (NotImplementedError)


60
61
62
# File 'lib/capybara/driver/node.rb', line 60

def tag_name
  raise NotImplementedError
end

- (Object) trigger(event)



84
85
86
# File 'lib/capybara/driver/node.rb', line 84

def trigger(event)
  raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end

- (Object) unselect_option

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/capybara/driver/node.rb', line 36

def unselect_option
  raise NotImplementedError
end

- (Object) value

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/capybara/driver/node.rb', line 23

def value
  raise NotImplementedError
end

- (Boolean) visible?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


64
65
66
# File 'lib/capybara/driver/node.rb', line 64

def visible?
  raise NotImplementedError
end

- (Object) visible_text

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/capybara/driver/node.rb', line 15

def visible_text
  raise NotImplementedError
end