Skip to content

Commit

Permalink
Update hybrid.md
Browse files Browse the repository at this point in the history
  • Loading branch information
feelobot committed Nov 4, 2013
1 parent 00cedf5 commit d1f2217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/hybrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

<a name="android"></a>Automating hybrid Android apps
--------------------------
Expand Down

0 comments on commit d1f2217

Please sign in to comment.