Class: Capybara::Driver::Base

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

Direct Known Subclasses

RackTest::Driver, Selenium::Driver

Instance Method Summary collapse

Instance Method Details

#current_urlObject

Raises:

  • (NotImplementedError)


2
3
4
# File 'lib/capybara/driver/base.rb', line 2

def current_url
  raise NotImplementedError
end

#evaluate_script(script) ⇒ Object



34
35
36
# File 'lib/capybara/driver/base.rb', line 34

def evaluate_script(script)
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script'
end

#execute_script(script) ⇒ Object



30
31
32
# File 'lib/capybara/driver/base.rb', line 30

def execute_script(script)
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script'
end

#find_css(query) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/capybara/driver/base.rb', line 14

def find_css(query)
  raise NotImplementedError
end

#find_xpath(query) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/capybara/driver/base.rb', line 10

def find_xpath(query)
  raise NotImplementedError
end

#go_backObject



22
23
24
# File 'lib/capybara/driver/base.rb', line 22

def go_back
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#go_back'
end

#go_forwardObject



26
27
28
# File 'lib/capybara/driver/base.rb', line 26

def go_forward
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#go_forward'
end

#htmlObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/capybara/driver/base.rb', line 18

def html
  raise NotImplementedError
end

#invalid_element_errorsObject



58
59
60
# File 'lib/capybara/driver/base.rb', line 58

def invalid_element_errors
  []
end

#needs_server?Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/capybara/driver/base.rb', line 69

def needs_server?
  false
end

#reset!Object



66
67
# File 'lib/capybara/driver/base.rb', line 66

def reset!
end

#response_headersObject



42
43
44
# File 'lib/capybara/driver/base.rb', line 42

def response_headers
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#response_headers'
end

#save_screenshot(path, options = {}) ⇒ Object



38
39
40
# File 'lib/capybara/driver/base.rb', line 38

def save_screenshot(path, options={})
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot'
end

#status_codeObject



46
47
48
# File 'lib/capybara/driver/base.rb', line 46

def status_code
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#status_code'
end

#visit(path) ⇒ Object

Raises:

  • (NotImplementedError)


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

def visit(path)
  raise NotImplementedError
end

#wait?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/capybara/driver/base.rb', line 62

def wait?
  false
end

#within_frame(frame_handle) ⇒ Object



50
51
52
# File 'lib/capybara/driver/base.rb', line 50

def within_frame(frame_handle)
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_frame'
end

#within_window(handle) ⇒ Object



54
55
56
# File 'lib/capybara/driver/base.rb', line 54

def within_window(handle)
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window'
end