i got one finding that if we use driver.manage().timeouts().implicitlyWait(40L, TimeUnit.SECONDS), it works fine when to find and element, can take minimum 0 second to maximum 40 seconds. but in case of switching window or frame it takes total maximum 40 seconds , means it acts as Thread.sleep(40000). has anyone faced same? please share it.
Thanks, Iqbal
