From 87bfe8c452484c014b57a974a147be999ff35d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Ko=CC=88hnke?= Date: Thu, 26 May 2016 23:10:15 +0200 Subject: [PATCH] Minor Documentation changes --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d8a9dd8..0255812 100644 --- a/README.md +++ b/README.md @@ -50,14 +50,18 @@ $ open Example.xcworkspace __Note:__ You will need CocoaPods 1.0 beta4 or higher. # Usage -A WKZombie instance equates to a web session. Top-level convenience methods like WKZombie.open use a shared instance, which is configured with the default settings. +A WKZombie instance equates to a web session. Top-level convenience methods like *WKZombie.open()* use a shared instance, which is configured with the default settings. -As such, the following two statements are equivalent: +As such, the following three statements are equivalent: ```ruby let action : Action = open(url) ``` +```ruby +let action : Action = WKZombie.open(url) +``` + ```ruby let browser = WKZombie.sharedInstance let action : Action = browser.open(url) @@ -73,7 +77,7 @@ Be sure to keep `browser` in a stored property for the time of being used. #### Chaining Actions -Web page navigation is based on *Actions*, that can be executed **implicitly** when chaining actions using the [`>>>`](#operators) or [`>>*`](#operators) (for snapshots) operator. All chained actions pass their result to the next action. The [`===`](#operators) operator then starts the execution of the action chain. +Web page navigation is based on *Actions*, that can be executed **implicitly** when chaining actions using the [`>>>`](#operators) or [`>>*`](#operators) (for snapshots) operators. All chained actions pass their result to the next action. The [`===`](#operators) operator then starts the execution of the action chain. The following snippet demonstrates how you would use WKZombie to **collect all Provisioning Profiles** from the Developer Portal and **take snapshots of every page**: