HI I was trying to pause the execution of Selenium for seconds to wait for Modal popup to show.
But time.sleep(5)
didn't work using phantomJS (I've heard that PhantomJS do not support sleep).
So I came up setTimeout.
driver.execute_script('setTimeout(function(){"scroll(0, 300);"}, 3600);')
But It doesn't work even in the Chrome Selenium driver.
Even though driver.execute_script('scroll(0, 300);')
works, I don't know how to execute setTimeout in the selenium.