If you are performing another operation after logging then time.sleep is not a good practice. For this you have better approach like implicit explicit waits.
The objective in this post is to be more clear for those who are starting automation. So, in my view self.bot.get() not looks clean and organized. If we talk about waits, it causes different kinds of errors depending on website's speed. Even sometimes websites can cause internal errors so these waits will crash at that moment. Anyway, thank you for your comment maybe your approach will work for someone👍
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why would you ever do that. self.bot.get... is just fine, no need to copy attributes.
If you are performing another operation after logging then time.sleep is not a good practice. For this you have better approach like implicit explicit waits.
The objective in this post is to be more clear for those who are starting automation. So, in my view self.bot.get() not looks clean and organized. If we talk about waits, it causes different kinds of errors depending on website's speed. Even sometimes websites can cause internal errors so these waits will crash at that moment. Anyway, thank you for your comment maybe your approach will work for someone👍