Watir – Handling FCK Editor
May 20, 2009
Code:
#Focus the Body
$ie.frame(:index, 1).frame(:name, “eEditorArea”).document.body.focus;
#Select all existing contents and delete it
$ie.send_keys(“{CTRLDOWN} a {CTRLUP}{DEL}”)
#Type the new content
$ie.send_keys(“Raveendran is a member of jazzez.”)
#click update button
$ie.button(:name, ‘update’).click