remove time limit between commands selenium firefox driver code example
Example: selenium wait seconds
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);