Web Automation With Python (Automate Google Search) | Python Tutorials for Beginners | Amir Sandila

Опубликовано: 04 Август 2026
на канале: Amir Sandila
670
18

Web Automation With Python | Python Tutorials for Beginners
Here is a python tutorial for you where I have done some simple web automation using python.
SUBSCRIBE for more Python Tutorials.

Source Code
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://google.com/')
searchBox = driver.find_element_by_xpath('//*[@id="tsf"]/div[2]/div[1]/div[1]/div/div[2]/input')
searchBox.send_keys('Amir Sandila')
searchButton = driver.find_element_by_xpath('//*[@id="tsf"]/div[2]/div[1]/div[3]/center/input[1]')
searchButton.click()