Commit Graph

29 Commits

Author SHA1 Message Date
Joe Ferris e6e2351a15 Improve failure message when trying to click invisible elements
When not ignoring invisible elements, the message didn't explain that
the click failed because the element was invisible.
2013-07-17 15:35:18 -04:00
Joe Ferris 7f57542f41 Include the overlapping xpath for ClickeFailed from obscured elements
This makes it easier to debug failed clicks because of modals, etc.

Example message:

    Failed to click element /html/body/div[@id='one'] because of overlapping
    element /html/body/div[@id='two'] at position 199, 199
2013-07-12 11:46:17 -04:00
Matthew Horan 58c5b41339 Don't look for attached nodes at invalid indices 2013-04-02 19:25:26 -04:00
Matthew Horan 1de4647fad Click the center of the first non-empty rectangle
Fixes #481.
2013-03-03 19:57:42 -05:00
Matthew Horan af998e102a Don't ignore hidden elements for click test spec 2013-02-19 21:08:09 -05:00
Matthew Horan 05b92c9bf0 Return element and position for ClickFailed error 2013-02-11 00:04:35 -05:00
Matthew Horan 5dcbe9a0a4 Raise Capybara.ClickFailed on click test failure
Prevents Node#set from succeeding when click test fails.
2013-02-11 00:04:35 -05:00
Matthew Horan be6a055687 Capybara should retry when ClickFailed is raised 2013-02-09 23:35:52 -05:00
Matthew Horan 2c47aea29f Raise error when iframe elements are unclickable 2013-02-09 23:35:52 -05:00
Matthew Horan 4837ff144c Raise error when elements are unclickable 2013-02-09 23:35:52 -05:00
Matthew Horan 30c79fcfcb Click elements with native events 2013-02-09 23:35:52 -05:00
Matthew Horan bca84f9a57 Don't start queued commands more than once
TimeoutCommand may receive pageFinished multiple times before
PageLoadingCommand has finished.
2012-12-18 22:46:24 -05:00
Matthew Horan 1cc1428ee4 Return proper status code from slow iframe app 2012-12-11 23:48:30 -05:00
Matthew Horan 8e80fe635a Test to verify fix for #399 2012-12-11 23:31:32 -05:00
Matthew Horan dc5e0325c5 Update Capybara integration specs for Capybara 2.0 2012-11-30 21:38:55 -05:00
Nicolas Sanguinetti eeeddbd072 Follow the expected gem name/require path 2011-09-26 11:33:25 -03:00
shogo-ohta 9c195af89c added spec for response header 2011-08-26 23:10:20 +09:00
shogo-ohta c28e9a177c added spec for reset status code 2011-08-26 22:58:31 +09:00
os0x 5ce60584ad reset status code 2011-08-24 00:18:08 +09:00
shogo-ohta 88b70e37a3 add spec for status code with image 2011-08-23 16:24:11 +09:00
Matthew Mongeau 81ad8fd130 Implement source and body. Evaluate javascript should return nil when empty 2011-07-29 15:06:41 -04:00
Matthew Mongeau 4642d338cc Session spec is working 2011-07-29 11:45:04 -04:00
Matthew Mongeau c621e651c9 Support Textareas#value 2011-07-29 11:41:13 -04:00
Matthew Mongeau 8cad037afc Include Capybara#attach_file tests 2011-07-22 10:41:50 -04:00
Yuichi Tateno 9db603cbea support utf8 command ( ruby to webkit_server ) 2011-04-19 20:51:38 +09:00
Yuichi Tateno 246597c36b convert to utf8 string 2011-04-19 18:07:42 +09:00
Joe Ferris 1c626e7359 Fix missing constant when inspecting nodes 2011-04-14 10:33:40 -04:00
Joe Ferris 40804c06ba Wait and timeout when looking for content 2011-04-14 10:16:56 -04:00
Joe Ferris 7451010c18 Added commented out integration specs 2011-02-26 17:02:00 -05:00