Skip to content

Support for context switching #20

Closed
@tmulry

Description

@tmulry

Hi-
I 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.

module Appium::Capybara
  class Appium::Capybara::Driver
    def set_context context
      browser.set_context context
    end
  end
end

Has 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?

Edit: 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.

Did not get session redirect from Chromedriver (Selenium::WebDriver::Error::UnknownError)
      ./common/appium.rb:9:in `set_context'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions