Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)
The problem is that this version of withTimeout and pollingEvery are deprecated
in lieu of withTimeout(duration) and pollingEvery(duration).
The problem with the non-deprecated approach is that the Duration object is deprecated which then in effect
deprecates this branch of creation. The result is that there is no way to construct a new FluentWait
object with the single parameter constructor that is not deprecated.
But the single parameter constructor is not deprecated...
If you follow the path of the new FluentWait<WebDriver>(driver, clock, sleeper) then
you don't run into this issue. Is the intent to force usage of the clock and sleeper objects
in lieu of the duration/time unit mechanisms?
I appreciate any feedback.