Menu

# Opening Chrome in Python
πŸ–ΌοΈ

# Opening Chrome in Python

DEV CommunityΒ·mary kariukiΒ·6 months ago
#GZykzuDb
#programming#beginners#python#machinelearning#selenium
Reading 0:00
15s threshold

This article explains how to open Google Chrome using Python and Selenium on a Windows system. It includes real command-line outputs and Python code.

1. Installing Selenium

Before using Selenium, you must install it using pip.

Command Prompt Output

Microsoft Windows Version 10.0.26200.8246 Microsoft Corporation. All rights reserved.

C:\Users\User>

pip install selenium

Enter fullscreen mode

Exit fullscreen mode

Requirement already satisfied: selenium in c:\users\user\anaconda3\lib\site-packages (4.43.0)

2. Opening Python

C:\Users\User>python

Python 3.13.9 | packaged by Anaconda, Inc. | (main, Oct 21 2025, 19:09:58) [MSC v.1929 64 bit (AMD64)] on win32

3. Importing Selenium and Opening Chrome

from selenium import webdriver

driver = webdriver .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.