# Write a Python Selenium – Find Button by text # Import Libraryfrom selenium import webdriverimport time  # set webdriver path here it may vary# Its the location where you have downloaded the ChromeDriverdriver = webdriver.Chrome(executable_path=r"C:\\chromedriver.exe")  # Get the target URLdriver.get('https://html.com/tags/button/')  # Wait for 5 seconds to load the webpage completelytime.sleep(5)  # Find the button using textdriver.find_element_by_xpath('//button[normalize-space()="Click me!"]').click()  time.sleep(5)  # Close the driverdriver.close()