@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Facebook\WebDriver\WebDriverElement; |
| 7 | 7 | use Facebook\WebDriver\WebDriverSelect; |
| 8 | 8 | use Magium\NotFoundException; |
| 9 | -use Magium\WebDriver\FastSelectElement; |
|
| 10 | 9 | use Magium\WebDriver\WebDriver; |
| 11 | 10 | |
| 12 | 11 | class SetFormValue |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function setById($id, $value) |
| 31 | 31 | { |
| 32 | - $this->set('id:' . $id, $value); |
|
| 32 | + $this->set('id:'.$id, $value); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | public function set($name, $value) |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | } else { |
| 42 | 42 | $element = $this->webDriver->byXpath(sprintf('//label[.="%s"]', $name)); |
| 43 | 43 | if (!$element->getAttribute('for')) { |
| 44 | - throw new NotFoundException('Unable to find the "for" attribute for a label with the text: ' . $name); |
|
| 44 | + throw new NotFoundException('Unable to find the "for" attribute for a label with the text: '.$name); |
|
| 45 | 45 | } |
| 46 | 46 | $formElement = $this->webDriver->byId($element->getAttribute('for')); |
| 47 | 47 | } |