I'm a beginner in selenium, and I use a lot of it in my code time.sleep To prevent some EXCEPTIONS.Sometimes it works, but sometimes it doesn't work, and how many seconds of sleep is hard to determine. Is there a smarter way to do it, let my code more pythonic? Thanks.
my pc is ubuntu 16.04, brower is firefox, python is python3.6