Python - Opening links using Selenium Last Updated : 12 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report Selenium is a powerful tool for controlling the web browser through the program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Selenium Python bindings provide a convenient API to access Selenium WebDrivers like Firefox, Ie, Chrome, Remote, etc. The currently supported Python versions are 2.7, 3.5 and above. InstallationSelenium: To install this module type the below command in the terminal. pip install seleniumWeb Drivers: Selenium requires a web driver to interface with the chosen browser.Web drivers is a package to interact with web browser. It interacts with the web browser or a remote web server through a wire protocol which is common to all. You can check out and install the web drivers of your browser choice. Chrome: https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fp.rizon.top%3A443%2Fhttps%2Fsites.google.com%2Fa%2Fchromium.org%2Fchromedriver%2Fdownloads&followup=https%3A%2F%2Fp.rizon.top%3A443%2Fhttps%2Fsites.google.com%2Fa%2Fchromium.org%2Fchromedriver%2Fdownloads&ifkv=AdBytiMJNCqaRcvPgK-LtoQmx8ijsnmnQaQy4INVJKWFawSKVaGFjDAXXNXAMvDjWw3J61gQrdQWpA&osid=1&passive=1209600&flowName=WebLiteSignIn&flowEntry=ServiceLogin&dsh=S824843562%3A1752301101852447Firefox: https://github.com/mozilla/geckodriver/releases Safari: https://webkit.org/blog/6900/webdriver-support-in-safari-10/Selenium.get()This method is used to launch a new browser and will open the given URL in the browser. Syntax: driver.get(url) Parameters used: The function accept only one argument which is the desired link to be opened as showed in above syntax. Example: Python3 1== #importing webdriver from selenium from selenium import webdriver #selecting Firefox as the browser #in order to select Chrome # webdriver.Chrome() will be used driver = webdriver.Firefox(executable_path = '/path/to/geckodriver') #URL of the website url = "https://www.geeksforgeeks.org/" #opening link in the browser driver.get(url) Output: Comment More infoAdvertise with us Next Article Non blocking wait in selenium using Python R rakshitarora Follow Improve Article Tags : Python Web Technologies python-modules Practice Tags : python Similar Reads Python - Opening multiple tabs using Selenium Testing is an important concept in software methodology. Software is said to be effective and efficient only if it is bug-free. Testing can be done manually and also via automation. In Python, selenium is used to do automated testing. The selenium package is available, and they are much helpful to a 4 min read Navigating links using get method - Selenium Python Selenium's Python module allows you to automate web testing using Python. The Selenium Python bindings provide a straightforward API to write functional and acceptance tests with Selenium WebDriver. Through this API, you can easily access all WebDriver features in a user-friendly way. This article e 2 min read Print All Link Name Using Selenium In Python Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Requirements: You need to 1 min read Locating single elements in Selenium Python Locators Strategies in Selenium Python are methods that are used to locate elements from the page and perform an operation on the same. Seleniumâs Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using 5 min read Non blocking wait in selenium using Python Prerequisite : Browser Automation Using SeleniumWhen we want to do web automation, we require to wait for some javascript elements to load before we perform some action. For that matter, generally people use Python3 time.sleep(in_seconds) which is a blocking call.By blocking call I mean, it waits or 3 min read How to Locate Elements using Selenium Python? Selenium: is an open-source tool that automates web browsers. It provides a single interface that lets you write test scripts in programming languages like Ruby, Java, NodeJS, PHP, Perl, Python, and C#, among others. I personally prefer Python as itâs very easy to write code in python. A browser-dri 3 min read Like