Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. Through Selenium Python API you can access all functionalities of Selenium WebDriver in an intuitive way. This article illustrates about how to use Selenium Python to write your first program with Selenium to Search Google Using Python Selenium.
If you have not installed Selenium and its components yet, install them from here – Selenium Python Introduction and Installation.
How to search google using Python Selenium
Google search has a URL where you can append your keywords and it will search the keyword for you. For example – “https://google.co.in/search?q=gfg”, this will search gfg on google.co.in.In the same manner we arbitrarily provide the keyword we want to search or take input from user. This is an example program to understand how Selenium works.
After you have installed Selenium, create a file called run.py as –
- Python | Automate Google Search using Selenium
- Performing Google Search using Python code
- Python | Get a set of places according to search query using Google Places API
- Python | Get a google map image of specified location using Google Static Maps API
- Exceptions - Selenium Python
- How to take screenshot using Selenium in Python ?
- Selenium Python Basics
- How to get current_url using Selenium in Python?
- Selenium Python Tricks
- Python | SMS Bomber using Selenium
- Waits in Selenium Python
- How to install Selenium in Python
- Selenium Python Tutorial
- Like instagram pictures using Selenium | Python
- Special Keys in Selenium Python
- Writing Tests using Selenium Python
- Interacting with Webpage - Selenium Python
- Python | page_source method in Selenium
- Locator Strategies - Selenium Python
- Element methods in Selenium Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.