From 465efb481ddda084e068bc7a314e0edeaeb5f123 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Tue, 9 Apr 2019 03:28:45 +0900 Subject: [PATCH] docs: update hybrid app doc ruby example [skip ci] (#12449) --- docs/en/writing-running-appium/web/hybrid.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/en/writing-running-appium/web/hybrid.md b/docs/en/writing-running-appium/web/hybrid.md index 60e269bae..806b093c8 100644 --- a/docs/en/writing-running-appium/web/hybrid.md +++ b/docs/en/writing-running-appium/web/hybrid.md @@ -82,9 +82,12 @@ driver.quit(); ``` ```ruby -# ruby +# ruby_lib_core # assuming we have a set of capabilities -@driver = Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities, :url => SERVER_URL) +@driver = Appium::Core.for(url: SERVER_URL, desired_capabilities: capabilities).start_driver +# ruby_lib +# opts = { caps: capabilities, appium_lib: { custom_url: SERVER_URL }} +# @driver = Appium::Driver.new(opts, true).start_driver # I switch to the last context because its always the webview in our case, in other cases you may need to specify a context # View the appium logs while running @driver.contexts to figure out which context is the one you want and find the associated ID