Automating your web browser with selenium

Selenium is a very good skill to have as you can automate almost everything that you can do with a web browser. In this tutorial, we’ll learn how to use Python and Selenium to automate a web browser. This is an updated version of my previous article which unfortunately doesn’t work anymore. If you’re a complete beginner, read my python article to understand the basics. (https://4rkal.com/posts/python/) What is selenium? Selenium is an open source umbrella project for a range of tools and libraries aimed at supporting browser automation....

Why computers can’t represent 0.3 accurately

Most people know that adding up 0.1 + 0.2 equals 0.3. However computers represent it as 0.30000000000000004 . Here is a screenshot of it in python3 Your first thought might be that this is just some kind of error. Well its not Why does this happen? Fractions can be represented precisely in the base 10 system (used by humans) if a prime factor of the base is used (10). 2 and 5 are the prime factors of 10....

February 21, 2023 224 words 2 min