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

Add option to type in an element without clearing #125

Closed
wants to merge 1 commit into from

Conversation

thijsvdanker
Copy link

The ChromeDriver gives an error when trying to type in a 'date' field.

This commit adds a $clear parameter to the type() method that allows a user to continue typing into a field (and thus work around the ChromeDriver error).

usage:

$browser->type('@datefield', 01012016, false);

It might be that the keys() method is exactly for this use case.
In that case it might be nice to provide some documentation / exception handling or automatic fallback for the ChromeDriver.

The ChromeDriver gives an error when trying to type in a 'date' field.

This commit adds a `$clear` parameter to the `type()` method that allows a user to continue typing into a field (and thus work around the ChromeDriver error).

usage:
```php
$browser->type('@datefield', 01012016, false);
```
@taylorotwell
Copy link
Member

I'm not a big fan of boolean parameters for this kind of thing. Maybe a whole new method?

@driesvints
Copy link
Member

@thijsvdanker there's already a method for this apparently: append

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

Successfully merging this pull request may close these issues.

None yet

3 participants