{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium_capybara/issues/20","labels_url":"https://api.github.com/repos/appium/appium_capybara/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium_capybara/issues/20/comments","events_url":"https://api.github.com/repos/appium/appium_capybara/issues/20/events","html_url":"https://github.com/appium/appium_capybara/issues/20","id":62194511,"number":20,"title":"Support for context switching","user":{"login":"tmulry","id":4219434,"avatar_url":"https://avatars.githubusercontent.com/u/4219434?v=3","gravatar_id":"","url":"https://api.github.com/users/tmulry","html_url":"https://github.com/tmulry","followers_url":"https://api.github.com/users/tmulry/followers","following_url":"https://api.github.com/users/tmulry/following{/other_user}","gists_url":"https://api.github.com/users/tmulry/gists{/gist_id}","starred_url":"https://api.github.com/users/tmulry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmulry/subscriptions","organizations_url":"https://api.github.com/users/tmulry/orgs","repos_url":"https://api.github.com/users/tmulry/repos","events_url":"https://api.github.com/users/tmulry/events{/privacy}","received_events_url":"https://api.github.com/users/tmulry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium_capybara/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-16T20:04:54Z","updated_at":"2015-03-16T22:32:47Z","closed_at":null,"body":"Hi-\r\nI have searched through the code/issues, and although I see some references to context switching and hybrid apps, they do not appear to be supported by the code.   I have patched the code(example below) for my own use.\r\n```ruby\r\nmodule Appium::Capybara\r\n  class Appium::Capybara::Driver\r\n    def set_context context\r\n      browser.set_context context\r\n    end\r\n  end\r\nend\r\n```\r\nHas anyone tried to implement this?  It seems fairly straightforward and works fine in iOS and selendroid, but I am running into an issue with chromedriver on sauce when I try to switch contexts.  Is there any documented reason why the context methods haven't been implemented?   \r\n\r\nEdit:  The chromedriver error is below.  I don't get any error when I run this locally on a real device or run this request straight through the vanilla appium selenium driver.\r\n```\r\nDid not get session redirect from Chromedriver (Selenium::WebDriver::Error::UnknownError)\r\n      ./common/appium.rb:9:in `set_context'\r\n```"},"comment":{"url":"https://api.github.com/repos/appium/appium_capybara/issues/comments/81968265","html_url":"https://github.com/appium/appium_capybara/issues/20#issuecomment-81968265","issue_url":"https://api.github.com/repos/appium/appium_capybara/issues/20","id":81968265,"user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T22:32:47Z","updated_at":"2015-03-16T22:32:47Z","body":"The [did not get session redirect](https://github.com/appium/appium/issues?q=is%3Aissue+Did+not+get+session+redirect) is a common problem with chromedriver. It's not Ruby specific."}}