{"action":"created","issue":{"url":"https://api.github.com/repos/jnicklas/capybara/issues/1688","repository_url":"https://api.github.com/repos/jnicklas/capybara","labels_url":"https://api.github.com/repos/jnicklas/capybara/issues/1688/labels{/name}","comments_url":"https://api.github.com/repos/jnicklas/capybara/issues/1688/comments","events_url":"https://api.github.com/repos/jnicklas/capybara/issues/1688/events","html_url":"https://github.com/jnicklas/capybara/issues/1688","id":150635661,"number":1688,"title":"Capybara save_and_open_page_path and save_path problems?","user":{"login":"AntonTrapp","id":168248,"avatar_url":"https://avatars.githubusercontent.com/u/168248?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonTrapp","html_url":"https://github.com/AntonTrapp","followers_url":"https://api.github.com/users/AntonTrapp/followers","following_url":"https://api.github.com/users/AntonTrapp/following{/other_user}","gists_url":"https://api.github.com/users/AntonTrapp/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTrapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTrapp/subscriptions","organizations_url":"https://api.github.com/users/AntonTrapp/orgs","repos_url":"https://api.github.com/users/AntonTrapp/repos","events_url":"https://api.github.com/users/AntonTrapp/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTrapp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-24T07:03:05Z","updated_at":"2016-04-26T19:57:54Z","closed_at":"2016-04-25T02:37:42Z","body":"Please have a look at https://github.com/mattheworiordan/capybara-screenshot/issues/170\r\n\r\nAfter I **upgraded Capybara to 2.7.0** the screenshot gem produced the **screenshots in the project root instead of the default tmp/capybara** and deleted my project directory (really happy to commit to local git very often *lol*).\r\n\r\nWhen I set the path with **save_and_open_page_path it is working** but warning about the deprecation. With **save_path** I can remove the deprecation warning but it **is competely ignored** and all the files are comming to the project root directory again. That's my main reason to think that Capybara has a problem (I only **use** the two awesome gems, so it's just a noob guess)"},"comment":{"url":"https://api.github.com/repos/jnicklas/capybara/issues/comments/214867760","html_url":"https://github.com/jnicklas/capybara/issues/1688#issuecomment-214867760","issue_url":"https://api.github.com/repos/jnicklas/capybara/issues/1688","id":214867760,"user":{"login":"twalpole","id":16556,"avatar_url":"https://avatars.githubusercontent.com/u/16556?v=3","gravatar_id":"","url":"https://api.github.com/users/twalpole","html_url":"https://github.com/twalpole","followers_url":"https://api.github.com/users/twalpole/followers","following_url":"https://api.github.com/users/twalpole/following{/other_user}","gists_url":"https://api.github.com/users/twalpole/gists{/gist_id}","starred_url":"https://api.github.com/users/twalpole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twalpole/subscriptions","organizations_url":"https://api.github.com/users/twalpole/orgs","repos_url":"https://api.github.com/users/twalpole/repos","events_url":"https://api.github.com/users/twalpole/events{/privacy}","received_events_url":"https://api.github.com/users/twalpole/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T19:57:54Z","updated_at":"2016-04-26T19:57:54Z","body":"@mattheworiordan The first thing save_page and save_screenshot do is call [prepare_path](https://github.com/jnicklas/capybara/blob/master/lib/capybara/session.rb#L729) passing in the filename/path passed to them and the default extension types (html/png).  If Capybara.save_path is defined Capybara should handle relative filenames correctly and you should be able to just pass a relative filename/path and it should save in the right place (or use Capybara.save_path to build an absolute path), if save_path is not defined and the previous Capybara.save_and_open_page_path is non nil you need to do what you were previously doing.\r\n\r\n"}}