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) [](name)

Raises:

  • (NotImplementedError)


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

def [](name)
  raise NotImplementedError
end

- (Boolean) checked?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def checked?
  raise NotImplementedError
end

- (Object) click

Raises:

  • (NotImplementedError)


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

def click
  raise NotImplementedError
end

- (Object) drag_to(element)

Raises:

  • (NotImplementedError)


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

def drag_to(element)
  raise NotImplementedError
end

- (Object) inspect



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

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

- (Object) path



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

def path
  raise NotSupportedByDriverError
end

- (Object) select_option

Raises:

  • (NotImplementedError)


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

def select_option
  raise NotImplementedError
end

- (Boolean) selected?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def selected?
  raise NotImplementedError
end

- (Object) set(value)

Raises:

  • (NotImplementedError)


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

def set(value)
  raise NotImplementedError
end

- (Object) tag_name

Raises:

  • (NotImplementedError)


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

def tag_name
  raise NotImplementedError
end

- (Object) text

Raises:

  • (NotImplementedError)


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

def text
  raise NotImplementedError
end

- (Object) trigger(event)



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

def trigger(event)
  raise NotSupportedByDriverError
end

- (Object) unselect_option

Raises:

  • (NotImplementedError)


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

def unselect_option
  raise NotImplementedError
end

- (Object) value

Raises:

  • (NotImplementedError)


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

def value
  raise NotImplementedError
end

- (Boolean) visible?

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def visible?
  raise NotImplementedError
end