title: How can I open every link within my forum after filtering all of the available href tags?
body: <p>Can it be possible to add a click on link event or a new tab for all possible links so that I can scrape my forum I had to filter the forum by using the URL as a filter by grabbing all links that contain viewthread but when I try to get it to click on it just ends with no errors can someone explain it to me as I am very new to web scraping</p>
  <pre><code>from selenium import webdriver
     from selenium.webdriver.chrome.options import Options
     from selenium.webdriver.chrome.service import Service
     from selenium.webdriver.common.by import By
     from selenium.webdriver.support.ui import WebDriverWait
     from selenium.webdriver.support import expected_conditions as EC
  
     options = Options()
     options.add_argument(&quot;start-maximized&quot;)
  
     webdriver_service = Service('C:\webdrivers\chromedriver.exe')
     driver = webdriver.Chrome(service=webdriver_service, options=options)
     url = &quot;https://navalcommand.enjin.com/forum/viewforum/2989694/m/11178354/page/1&quot;
     driver.get(url)
     wait = WebDriverWait(driver, 100)
  
     elems = driver.find_elements(By.XPATH, &quot;//table[@class='structure small-cells']//a[@href]&quot;)
  
     for elem in elems:
         if &quot;viewthread&quot; in elem.get_attribute('href'):
            print(elem.get_attribute(&quot;href&quot;))
  
     links = driver.find_elements(By.XPATH, &quot;//table[@class='structure small-cells']//a[@href]&quot;)
  
     for link in links:
         if &quot;veiwthread&quot; in link.get_attribute(&quot;href&quot;):
             wait = WebDriverWait(driver, 10)
             wait.until(EC.frame_to_be_available_and_switch_to_it((By.XPATH, &quot;//table[@class='structure small-cells']//a[@href]']&quot;)))
             print(driver.page_source)
  
             link = driver.find_element(By.XPATH, &quot;.//a[@href]&quot;)
             link.click()
  </code></pre>