Commit Graph

29 Commits

Author SHA1 Message Date
randoum 00cec74ed7 Avoid NoMethodError when calling Capybara::Selenium::Driver#quit and driver was not started 2013-05-23 19:06:05 +08:00
Jonas Nicklas 4772f509f8 Delay loading selenium until driver in instantiated
Another attempt at fixing #1018
2013-03-18 23:43:48 +01:00
CJ Kihlbom and Jonas Nicklas 6e586bc9b3 Reraise uncaught load errors. 2013-02-25 08:55:34 +01:00
CJ Kihlbom and Jonas Nicklas cd1b966a97 Make selenium-webdriver an optional dependency, closes #887 2013-02-24 18:54:39 +01:00
Thomas Walpole 63f24957ee fix for within_frame issue #686 2013-02-22 12:12:09 -08:00
Thomas Walpole eba8eaba40 change node and driver api to use find_xpath and find_css 2013-02-19 09:03:26 -08:00
Thomas Walpole f6ababc62d Selector remembers format, CSSHelpers, and drivers assumed to handle css 2013-02-18 14:41:44 -08:00
Thomas Walpole 4a5876d95e driver can be queried for supported query formats and support for native css queries within a scope 2013-02-18 12:35:24 -08:00
Thomas Walpole 4f805d5a1c dont convert css to xpath 2013-02-16 13:26:01 -08:00
molfar 8df6ed16ec Add #title method to Capybara::Node::Document 2013-02-06 21:36:55 +02:00
Andrey Botalov f2fe859f40 Document actual within_frame support 2013-01-08 11:40:12 +03:00
Jonas Nicklas ae7c56446d Make source a true alias of html, closes #871 2012-11-20 14:24:39 +01:00
Jonas Nicklas 4f74ff5e6c Prevent timing errors due to invisible elements, in Selenium 2012-11-13 14:27:11 +01:00
Elabs Developer be672f3dcf Rescue StaleElementReferenceError
Seems like StaleElementReferenceError is a superclass to ObsoleteElementError, so it is better to catch this one.
2012-09-11 15:06:13 +03:00
Jo Liss 954fcc69a3 Rename Driver#body to Driver#html
For historical reasons, Session#html used to delegate to Driver#body,
(but Session#body & Session#source delegate to Driver#source). This
commit puts an end to this confusing state of affairs.

This change requires driver authors to update their drivers.
2012-09-10 03:17:15 +02:00
Jonas Nicklas 0b277433c7 Session is responsible for starting server 2012-07-13 13:29:02 +02:00
Ryunosuke SATO 1c161c6092 Support `Capybara::Session#save_screenshot` 2012-07-10 13:52:13 +09:00
Alistair Hutchison e6e885c089 Make within_frame return the value of calling the given block 2012-05-21 15:30:18 +01:00
Jonas Nicklas a1b1cc7132 Remove resynchronization for Selenium 2012-02-01 14:23:17 +01:00
Kouhei Sutou ab36126ad2 suppress a warning:
lib/capybara/selenium/driver.rb:22: warning: instance variable @exit_status not initialized
2012-01-08 23:02:24 +09:00
Kouhei Sutou 16145ad11d suppress warnings:
lib/capybara/selenium/driver.rb:14: warning: instance variable @browser not initialized
lib/capybara/selenium/driver.rb:79: warning: instance variable @browser not initialized
2012-01-08 23:01:46 +09:00
Kouhei Sutou be7c258446 suppress a warning:
lib/capybara/selenium/driver.rb:82: warning: assigned but unused variable - e
2012-01-08 22:53:45 +09:00
Jared Grippe f5e5f3200c is this a terrible idea? 2011-11-09 14:02:53 -08:00
Edgars Beigarts 5f4c537ed9 Make sure that exit codes of tests are propagated properly when using selenium webdriver. 2011-08-22 11:15:03 +03:00
Jonas Nicklas and Nicklas Ramhöj ec2ff46220 Switch off resynchronization by default
Didn't we already do this?
2011-08-15 15:34:30 +02:00
Jonas Nicklas 941e50132a Elements are automatically reloaded 2011-07-13 17:52:42 +02:00
Jonas Nicklas 91de98bb03 Switch off resynchronization by default 2011-07-13 15:40:17 +02:00
Jon Leighton 97da26eef4 The at_exit hook to quit the selenium browser should not execute for unrelated child processes 2011-05-23 23:47:48 +01:00
Jonas Nicklas 79ff093727 Move and rename Selenium driver class 2011-04-11 06:24:00 +01:00
Renamed from lib/capybara/driver/selenium_driver.rb (Browse further)