From d1f2217d5e8a6d1ac7e00b96e9f75d87a3ac618d Mon Sep 17 00:00:00 2001 From: Felix Rodriguez Date: Mon, 4 Nov 2013 13:50:17 -0800 Subject: [PATCH] Update hybrid.md --- docs/hybrid.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/hybrid.md b/docs/hybrid.md index d1db13ef3e4..e215b0dc968 100644 --- a/docs/hybrid.md +++ b/docs/hybrid.md @@ -103,7 +103,7 @@ Once installed you can start the proxy with the following command: remoteWebDriver.quit(); ``` -## Wd.ruby Code example using cucumber +## Wd.rb Code example using cucumber ```ruby TEST_NAME = "Example Ruby Test" @@ -138,6 +138,9 @@ And(/^I click a webview button $/) do @driver.find_element(:css, ".green_button").click end ``` +#### Troubleshooting Webview with Ruby: +I created a quick function in my helper class to find web elements no matter what window its in (this is useful if your webview id changes or if you are using the same codebase to test android and ios) +https://gist.github.com/feelobot/7309729 Automating hybrid Android apps --------------------------