public function setAttribute($attributeName, $value)
{
$key = $attributeName == 'text' ? 'var k=typeof arguments[0].textContent!="undefined"?"textContent":"innerText"' : sprintf('var k="%s"', addslashes($attributeName));
$script = sprintf("{$key};arguments[0][k]='%s';return true", addslashes($value));
$this->_driver->executeScript($script, array(array('ELEMENT' => $this->_elementId)));
return $this;
}