title: InvalidArgumentException: Message: invalid argument: 'url' must be a string invoking url using get()
body: <p>First, I got the total url of all pages. However, When I want to get into each page (page by page),it failed. How could I get into each page?</p>
  <pre><code>
  !pip install selenium
  from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.wait import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  import urllib as url
  from urllib.parse import urlparse
  import time
  
  browser = webdriver.Chrome(executable_path='./chromedriver.exe')
  wait = WebDriverWait(browser,5)
  output = []
  for i in range(1,2): # Iterate from page 1 to the last page
      browser.get(&quot;https://tw.mall.yahoo.com/search/product?p=%E5%B1%88%E8%87%A3%E6%B0%8F&amp;pg={}&quot;.format(i))
      
      # Wait Until the product appear
      wait.until(EC.presence_of_element_located((By.XPATH,&quot;//ul[@class='gridList']&quot;)))
  
      # Get the products
      product_links = browser.find_elements(By.XPATH,&quot;//ul[@class='gridList']/li/a&quot;)
      
        # Iterate over 'product_links' to get all the 'href' values
      for link in (product_links):
          print(f&quot;{link.get_attribute('href')}&quot;)
          output.append([link.get_attribute('href')])
          for b in output:
              browser.get(b)           
  </code></pre>
  <p>output</p>
  <pre><code>InvalidArgumentException: Message: invalid argument: 'url' must be a string
    (Session info: chrome=96.0.4664.45)
  </code></pre>