I was using TEmbeddedWB:

EmbeddedWb1.ElementByID['username'].SetAttribute('value', 'stanko', 0)

This is if you ger error:

Exception class EOleError with message 'Method 'Name' not supported by automation object

In TEmbeddedWB.