Merge pull request #65 from Mordred/master

Type hint in WebDriverWait constructor
Support for alerts and prompts
Changed indent to 2-space, implemented switchTo()
Merge pull request #66 from jonstjohn/master

Support for alerts and prompts
Choosing the wait interval of WebDriverWait

The problem:
When the thing to wait is expensive, we don't want to retry it too
often.

The solution:
Add the ability to control the interval of retry.
fixing usleep bug in WebDriverWait

The unit of usleep() is microsecond(10^6).
The unit of interval is millisecond(10^3).

p.s. thank for the catch from justkunz.
Fixed "must be an instance of string, string given" error in WebDriverExpectedCondition.php

PHP type hinting does not work for strings.
Merge pull request #67 from davidsickmiller/patch-1

Fixed "must be an instance of string, string given" error in WebDriverEx...
Get session from WebDriverCommandExecutor
Implemented WebDriverExpectedCondition:alertIsPresent()

Ported this function from the Java API: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html#alertIsPresent()
Merge pull request #68 from davidsickmiller/patch-2

Implemented WebDriverExpectedCondition:alertIsPresent()
Scrolling the WebDriverElement into the view port

Try scrolling the element into the view port and return the
location of element relative to the top-left corner of the page
afterwards.

$position_after_scrolling =
  $element->getLocationOnScreenOnceScrolledIntoView();

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
[WebDriverKeys]

Adding a class containing pressable keys that aren't text.
These are stored in the Unicode PUA (Private Use Area) code points.
Constucting WebDriverWait in WebDriver

$driver->wait(20, 500)->until(this);
$driver->wait(10, 250)->until(that);

instead of

$this_wait = new WebDriverWait($driver, 20, 500);
$this_wait->until(this);
$that_wait = new WebDriverWait($driver, 10, 250);
$that_wait->until(that);
added expectation for substring of title.
Merge pull request #1 from SuperFamousGuy/in-title-expected-condition-08132013-kk

added expectation for substring of title.
changed strstr to strpos for optimization purposes.
Updated inTitle to titleContains and updated formatting by request.
updated to force a bool return
changed != to !== so that 0 != False will evaluate to False