Making the WebDriver wait without a ExpectedCondition

Viewed 2922

Java / Selenium WebDriver / Firefox

There is a text 'Input' field on a page. Then there is a 'Submit' button below it. Both the input field as well as the Submit button are already enabled when the page is loaded. After entering text in the input field, is there a way to make the WebDriver wait for 'x' seconds before clicking on Submit button, instead of clicking it right away.

The option I can see is Thread.sleep(x) which I understand is not an efficient way. The other option is using new WebDriverWait(driver,'x') without the Expected Conditions (as there is no Expected condition here as the Submit button is already visible and clickable). In this context, is this the same as using Thread.sleep(x)? Is there any other option?

1 Answers
Related