add element wait functions

Add functions to wait for an element this is usefull when you load element via js. I use it to wait for the iframe load.