input: Write a python function to automate browser actions using selenium webdriver.
  assert automate_browser_actions("http://example.com", "#00FF00")=="Background color changed to #00FF00"
  assert automate_browser_actions("http://example.com", "#FF0000")=="Background color changed to #FF0000"
  assert automate_browser_actions("http://example.com", "#0000FF")=="Background color changed to #0000FF"
output: def automate_browser_actions(url, color):
      from selenium import webdriver
      from selenium.webdriver.common.by import By
      from selenium.webdriver.common.keys import Keys
      import time
      
      # Initialize the WebDriver
      driver = webdriver.Chrome()
      
      try:
          # Navigate to the specified URL
          driver.get(url)
          
          # Locate the body element
          body = driver.find_element(By.TAG_NAME, "body")
          
          # Change the background color using JavaScript
          script = f"arguments[0].style.backgroundColor = '{color}';"
          driver.execute_script(script, body)
          
          # Verify the color change
          bg_color = driver.execute_script("return arguments[0].style.backgroundColor;", body)
          
          if bg_color == color:
              return f"Background color changed to {color}"
          else:
              return "Failed to change background color"
      finally:
          # Allow time to observe the change and then close the browser
          time.sleep(3)
          driver.quit()