Skip to content

Commit

Permalink
Remove incorrect comment
Browse files Browse the repository at this point in the history
This comment is stating that the code is adding a tab key, but it is not.
  • Loading branch information
Chekote authored Sep 8, 2021
1 parent 394e6ad commit 544d1a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,6 @@ public function setValue($xpath, $value)

if (in_array($elementName, array('input', 'textarea'))) {
$existingValueLength = strlen($element->attribute('value'));
// Add the TAB key to ensure we unfocus the field as browsers are triggering the change event only
// after leaving the field.
$value = str_repeat(Key::BACKSPACE . Key::DELETE, $existingValueLength) . $value;
}

Expand Down

0 comments on commit 544d1a8

Please sign in to comment.