title: Wait for pop up window to close in selenium webdriver
body: <p>Is there any command to wait for the popup to close.nActually my project is like on home page popup will appear and after choosing city pop gets close. Then I am able to click on sign in button. But when i run the script, before closing the pop up my next  command which is  click on sign in  button are executing. So test script getting fail. When I used sleep (10000),then my script is working fine. But every time i don't want to use sleep,</p>
  
  <p><a href="http://i.stack.imgur.com/us42R.png" rel="nofollow">Enter image description here</a></p>
  
  <p>Please help me with your answers</p>
  
  <p>Thanks</p>