facebook/php-webdriver — pull request #63 by jsifalda (2013-06-25 08:23:33+00:00)
Title: Better syntax suport

Please compare the following code:

```php

$loginForm->findElement(WebDriverBy::xpath('//input[@name="email"]'))->sendKeys('example@domain.com');
$passWordElement = $loginForm->findElement(WebDriverBy::xpath('//input[@name="password"]'));
$passWordElement->sendKeys('password');
Assert::same('password', $passWordElement->getAttribute('value'));

```

With the following pull is syntax simplier and nicer! :-)

```php
$loginForm = $lightBox->findElement(WebDriverBy::id('frm-signInForm'));
$loginForm->findElement(WebDriverBy::xpath('//input[@name="email"]'))->sendKeys('example@domain.com');
Assert::same('password', $loginForm->findElement(WebDriverBy::xpath('//input[@name="password"]'))->sendKeys('password')->getAttribute('value'));
```