input: Write a function to automate a web browser to check a webpage's title, text content, and hyperlink using Selenium WebDriver.
  assert check_webpage('https://example.com') == {'title': 'Example Domain', 'text': 'This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.', 'link': 'More information...'}
  assert check_webpage('https://anotherexample.com') == {'title': 'Another Example Domain', 'text': 'This is another example domain for testing purposes.', 'link': 'Details here'}
output: def check_webpage(url):
      from selenium import webdriver
      from selenium.webdriver.common.by import By
      from selenium.webdriver.chrome.service import Service as ChromeService
      from selenium.webdriver.chrome.options import Options
      from webdriver_manager.chrome import ChromeDriverManager
  
      # Setup Chrome options
      chrome_options = Options()
      chrome_options.add_argument('--headless')  # Run headless Chrome for testing
      chrome_options.add_argument('--no-sandbox')
      chrome_options.add_argument('--disable-dev-shm-usage')
  
      # Initialize the WebDriver
      driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), options=chrome_options)
      
      # Open the URL
      driver.get(url)
      
      # Get the title, text content, and hyperlink text
      title = driver.title
      text = driver.find_element(By.TAG_NAME, 'p').text
      link = driver.find_element(By.TAG_NAME, 'a').text
      
      # Close the WebDriver
      driver.quit()
      
      # Return the result as a dictionary
      return {'title': title, 'text': text, 'link': link}