This is my 2nd day into learning Selenium. I would like to extract text between these html tags called .
HTML Code Sample:
<div id="media-buttons" class="hide-if-no-js"/>
<textarea id="DescpRaw" class="ckeditor" name="DescpRaw" rows="13" cols="100" style="visibility: hidden; display: none;">
Cactus spines are produced from specialized structures
called areoles, a kind of highly reduced branch. Areoles
are an identifying feature of cacti.
</textarea>
</div>
Required results:
Cactus spines are produced from specialized structures
called areoles, a kind of highly reduced branch. Areoles
are an identifying feature of cacti.
I have tried with Selenium driver below, but it comes out empty.
String bodyhtml = driver.findElement(By.xpath("//textarea[@name='DescpRaw']")).getText();
Thank you!