unwwwritten
cucumber/webrat and utf-8
Posted November 11th, 2009 at 11:51 am EST by S. Brent Faulkner — View Comments
If you are having a problem selecting an option on a form in cucumber/webrat and the option happens to contain foreign characters...
DOH! Make sure you set the character set in your html or the option will not be found.
In haml...
%meta{:'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}
In html/erb...
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
Now it should work.
blog comments powered by Disqus