xxxxxxxxxx
from selenium import webdriver
# Create a new Chrome browser instance
driver = webdriver.Chrome()
# Navigate to a webpage
driver.get('https://www.example.com')
# Get the current URL
current_url = driver.current_url
print(current_url)
# Close the browser
driver.quit()