Capybara::Session with non-existant driver should raise an error Capybara::Driver::Terminus it should behave like driver #visit should move to another page should show the correct URL #body should return text reponses should return the full response html encoding of response between ascii and utf8 should be valid with html entities should be valid without html entities #find with xpath selector should extract node texts should extract node attributes should extract boolean node attributes should allow retrieval of the value should not swallow extra newlines in textarea should allow assignment of field value should extract node tag name should extract node visibility should extract node checked state should extract node selected state should return document text on /html selector it should behave like driver with javascript support #find should find dynamically changed nodes #drag_to should drag and drop an object #evaluate_script should return the value of the executed script it should behave like driver with resynchronization support #find with synchronization turned on should wait for all ajax requests to finish with resynchronization turned off should not wait for ajax requests to finish with short synchronization timeout should raise an error it should behave like driver with header support should make headers available through response_headers it should behave like driver with status code support should make the status code available through status_code it should behave like driver with frame support #within_frame should find the div in frameOne should find the div in FrameTwo should find the text div in the main window after finding text in frameOne should find the text div in the main window after finding text in frameTwo it should behave like driver with cookies support #reset! should set and clean cookies it should behave like driver with infinite redirect detection should follow 5 redirects should not follow more than 5 redirects Capybara::Session with terminus driver it should behave like session should encode complex field names, like array[][value] #visit should fetch a response from the driver #body should return the unmodified page body #html should return the unmodified page body #source should return the unmodified page source #reset_session! removes cookies resets current host resets current path resets page body it should behave like all #all should find all elements using the given locator should return an empty array when nothing was found should accept an XPath instance with css selectors should find all elements using the given selector should find all elements when given a list of selectors with xpath selectors should find the first element using the given locator with css as default selector should find the first element using the given locator with visible filter should only find visible nodes should only find invisible nodes within a scope should find any element using the given locator it should behave like first #first should find the first element using the given locator should return nil when nothing was found should accept an XPath instance with css selectors should find the first element using the given selector with xpath selectors should find the first element using the given locator with css as default selector should find the first element using the given locator with visible filter should only find visible nodes if true given should include invisible nodes if false given with prefer visible elements should find invisible elements if no visible element exists should prefer visible elements over invisible elements should return the first invisible element if no visible elements exist find visible links normally without prefer visible elements should find invisible elements if no visible element exists should not prefer visible elements over invisible elements within a scope should find the first element using the given locator it should behave like attach_file #attach_file with normal form should set a file path by id (FAILED - 1) should set a file path by label (FAILED - 2) with multipart form should set a file path by id (FAILED - 3) should set a file path by label (FAILED - 4) should not break if no file is submitted should send content type text/plain when uploading a text file (FAILED - 5) should send content type image/jpeg when uploading an image (FAILED - 6) should not break when using HTML5 multiple file input (FAILED - 7) with a locator that doesn't exist should raise an error with a path that doesn't exist should raise an error it should behave like check #check should check a checkbox by id should check a checkbox by label 'checked' attribute should be true if checked should be false if unchecked checking should not change an already checked checkbox should check an unchecked checkbox unchecking should not change an already unchecked checkbox should uncheck a checked checkbox with a locator that doesn't exist should raise an error it should behave like choose #choose should choose a radio button by id should choose a radio button by label with a locator that doesn't exist should raise an error it should behave like click_link_or_button #click should click on a link should click on a button should click on a button with no type attribute should be aliased as click_on with a locator that doesn't exist should raise an error it should behave like click_button #click_button should serialize and send valueless buttons that were clicked should not send image buttons that were not clicked should serialize and send GET forms should follow redirects should post pack to the same URL when no action given should post pack to the same URL when blank action given with multiple values with the same name should use the latest given value with a form that has a relative url as an action should post to the correct url with a form that has no action specified should post to the correct url with value given on a submit button on a form with HTML5 fields should serialise and submit search fields should serialise and submit email fields should serialise and submit url fields should serialise and submit tel fields should serialise and submit color fields on an HTML4 form should serialize and submit text fields should escape fields when submitting should serialize and submit password fields should serialize and submit hidden fields should not serialize fields from other forms should submit the button that was clicked, but not other buttons should serialize radio buttons should serialize check boxes should serialize text areas should serialize select tag with values should serialize select tag without values should serialize first option for select tag with no selection should not serialize a select tag without options should not submit disabled fields with id given on a submit button should submit the associated form should work with partial matches with title given on a submit button should submit the associated form should work with partial matches with alt given on an image button should submit the associated form should work with partial matches with value given on an image button should submit the associated form should work with partial matches with id given on an image button should submit the associated form with title given on an image button should submit the associated form should work with partial matches with text given on a button defined by