Element-34 / php-webdriver

thin php client for webdriver.
122 stars 55 forks source link

Depreciated Warning issued for SendKeys #50

Open mastermindg opened 10 years ago

mastermindg commented 10 years ago

When using sendKeys with the current Selenium build I'm getting exceptions:

Deprecated Warning:Use PHPWebDriver_WebDriverKeys('KeyName')\n

It works (key is pressed in browser) but the warning shows up in results.

tom-knight commented 10 years ago

You need to use something like this: $key = new PHPWebDriver_WebDriverKeys('EnterKey'); $element->sendKeys($key->key);