Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depreciated Warning issued for SendKeys #50

Open
mastermindg opened this issue Jan 2, 2014 · 1 comment
Open

Depreciated Warning issued for SendKeys #50

mastermindg opened this issue Jan 2, 2014 · 1 comment

Comments

@mastermindg
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants