I tried this 3 methods but none of them add time delay in selenium script of javascript. First two methods doesn't give errors but third one gives error
"TypeError: driver.manage(...).timeouts is not a function"
1st driver.sleep(5000);
2nd driver.manage().setTimeouts({ implicit: 2000 });
3rd driver.manage().timeouts().implicitlyWait(5000);
So how to add time delay in selenium Javascript only ?