improvements into format and findExtendedWebElement to be able to specify timeouts