DEV Community

Anja
Anja

Posted on

Browser automation with Selenium

Hey! Do you want to automate your browser for testing or repetitive tasks? Then Selenium might be a tool you want to have a look at. Selenium can be combined with a lot of different programming languages. In my example code Im using Python. You can install Selenium with pip install selenium.

Alt Text

Also you need to install the webdriver of the browser that you want to use, which was in my case Geckodriver for Firefox. This is whats happening in my code: We create a driver and open wikipedia.org. Then we click on the element that we fetched with its id. Next we click on the search bar, enter the word into it and press enter. Have a nice day!

Top comments (0)