make lazy firefox detection and fix context of wait sub-functions execution
fix naming semantic