Python selenium test gets stuck in urlopen Python selenium test gets stuck in urlopen django django