This is my current code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
import sys
from selenium.webdriver.common.keys import Keys
browser = webdriver.Chrome('/Users/opulentbase/Downloads/chromedriver')
browser.get('https://www.gooogle.com/')
searchBar = browser.find_element_by_name('q')
userSearch = input("Please enter a search: ")
searchBar.send_keys(userSearch)
searchBar.send_keys(Keys.ENTER)
morePlaces = browser.find_element_by_class_name('i0vbXd')
morePlaces.click()
locations = browser.find_elements_by_class_name('dbg0pd')
locations.click()
When I get to the google maps portion of the search there are 20 results of businesses on the map. They are all the same class name (dbg0pd). I want to click each of these businesses for the business information popup to appear, perform a task, then go back to clicking the rest of the results and performing the task.
This is the screenshot of the results: https://prnt.sc/se0vy4
This is the popup that shows up once I click a business: https://prnt.sc/se0wi3
Thanks in advance!