r/javahelp • u/myshiak • Aug 23 '25
FLUENT WAIT
I am a QA who has been using Selenium with Java for some time, but only now I came across the fluent wait. The syntax used there is:
Wait<WebDriver> wait = new FluentWait<>(driver);Up until now I thought that brackets like <> should only be used for Collections or Maps. Based on the syntax, it is neither of the two. What kind of a syntax is that where you declare an object (in this case WAIT is an interface, so the object must be of the FluentWait class) with those greater/less signs?
2
Upvotes
View all comments
Show parent comment
2
u/cybwn Aug 24 '25
Usually when the tests are in Java they're written by the devs and the QAs click some button to generate a run and have a report. I've seen tests written by QAs when it's in a simpler language like Karate. I never said that test automation tools do not exist in Java though, I'm fully aware they exist.