Since there’s no GameObject.guiElement property, you need to use guiText or guiTexture instead of guiElement. Not sure why it would work in Javascript, because that property doesn’t exist there either.
Only the components listed in the Inherited Members section of the MonoBehaviour page can be accessed in this way. For any other kind of component, you must use GetComponent to get your own reference to the component you want.