{"action":"opened","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2921","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2921/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2921/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2921/events","html_url":"https://github.com/Codeception/Codeception/issues/2921","id":143217607,"number":2921,"title":"seeInField in textarea","user":{"login":"artyfarty","id":1222287,"avatar_url":"https://avatars.githubusercontent.com/u/1222287?v=3","gravatar_id":"","url":"https://api.github.com/users/artyfarty","html_url":"https://github.com/artyfarty","followers_url":"https://api.github.com/users/artyfarty/followers","following_url":"https://api.github.com/users/artyfarty/following{/other_user}","gists_url":"https://api.github.com/users/artyfarty/gists{/gist_id}","starred_url":"https://api.github.com/users/artyfarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artyfarty/subscriptions","organizations_url":"https://api.github.com/users/artyfarty/orgs","repos_url":"https://api.github.com/users/artyfarty/repos","events_url":"https://api.github.com/users/artyfarty/events{/privacy}","received_events_url":"https://api.github.com/users/artyfarty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T11:06:58Z","updated_at":"2016-03-24T11:06:58Z","closed_at":null,"body":"Am i misunderstanding something or is seeInField for textarea broken?\r\n\r\nhttps://github.com/Codeception/Codeception/blob/006e8eacee08d8e729608d806dec5ded973f776f/src/Codeception/Module/WebDriver.php#L968-L971\r\n```\r\n                case 'textarea':\r\n                default:\r\n                    $currentValues[] = $el->getAttribute('value');\r\n                    break;\r\n```\r\n\r\nShouldn't it be `getText()` for textarea? In our 2.1.7 and 2.1.6 function looks like this:\r\n\r\n```\r\nprotected function proceedSeeInField(array $elements, $value)\r\n    {\r\n        ...\r\n        $currentValues = [];\r\n        if (is_bool($value)) {\r\n            $currentValues = [false];\r\n        }\r\n        foreach ($elements as $el) {\r\n            if ($el->getTagName() === 'textarea') {\r\n                $currentValues[] = $el->getAttribute('value');\r\n            } ...\r\n```\r\n\r\nThe same `$el->getAttribute('value')` explicitly stated for textarea. And well, our tests were failed until i've changed it to getText(). I can submit a PR, but maybe i'm missing something? \r\n\r\nAlso, i'm having trouble finding that version of a method in 2.1 branch."}}