Selenium Test Newline Textarea

January 16th, 2008

I just had a tough time figuring out how to get a newline into a textarea with selenium core. It should have been obvious, but I was thinking too deep.

Selenium reads the HTML output, not the text of the source. So to create a newline for a textarea, you have to use <br/>!

This reminds me that the other day I tried creating a dynamic test with a PHP file and of course it worked fine. I should also be able to create the test with XSL, which would be terrific.


Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022