!*< def
!define html ({{{  <textarea id="nothing"></textarea>
  <textarea id="withValue" value="red"></textarea>
  <textarea id="onlySpacesInText">   </textarea>
  <textarea id="withText">green</textarea>
  <textarea id="disabled" disabled="true">blue</textarea>
  <textarea id="withMultiText">yellow\n
orange</textarea>
  <textarea id="withMultiTextCR">yellow\rorange</textarea>
  <textarea id="withMultiTextBR">yellow<br/>orange</textarea>}}})
*!

|''keywords''|chrome,htmlunit,firefox,ie|

!include -c <FitLibraryWeb.SpiderFixture.SpecifySpiderFixture.SpecSetUp

|''with html''|${html}|

 * Firefox can only handle a textarea if it has a separate closing tag.

|''plain text of''|//textarea[@id="nothing"]|'''is'''||

|''plain text of''|//textarea[@id="disabled"]|''is''|blue|

|''plain text of''|//textarea[@id="onlySpacesInText"]|''is''||

|''plain text of''|//textarea[@id="withText"]|''is''|green|

|''plain text of''|//textarea[@id="withText"]|''matches''|gr.*n|

 * \n in text gets converted into a space in !-HtmlUnit-! and into nothing in Selenium:

|''plain text of''|//textarea[@id="withMultiText"]|''matches''|yellow.*orange|

 * \r in text gets converted into a space in !-HtmlUnit-! and into nothing in Selenium:

|''plain text of''|//textarea[@id="withMultiTextCR"]|''matches''|yellow.*orange|

 * <br/> in text gets removed:

|''plain text of''|//textarea[@id="withMultiTextBR"]|''matches''|yellow orange|

|''plain text of''|//textarea[@id="withMultiText"]|''matches''|yellow.*orange|

 * The value of a <textarea> is ignored:

|''plain text of''|//textarea[@id="withValue"]|''is''||
