title: Is there a way to find all hidden elements that have text using selenium python
body: <p>I am trying to scrape all translated text from multiple webpages.
  The page has to translate fully before I start the scraping and in order to do that I have to scroll through the page. I am using selenium with Edge and it translate feature.
  The problem here is that it only translates text that is visible and there are some text that dont show until some buttons are pressed.</p>
  <p>This is my code:</p>
  <pre><code>        options = EdgeOptions()
          options.add_experimental_option('excludeSwitches', ['enable-logging'])
          options.use_chromium = True
          options.add_extension('adblock.crx')
          capabilities = DesiredCapabilities.EDGE
          prefs = {
          &quot;translate_whitelists&quot;: {input_lang:output_lang},
          &quot;translate&quot;:{&quot;enabled&quot;:&quot;true&quot;}}
  
          options.add_argument('--lang=en')
          options.add_experimental_option(&quot;prefs&quot;, prefs)
  
          driver = Edge(executable_path=PATH, options=options, desired_capabilities=capabilities)
          driver.maximize_window()
  
          driver.get(url)
         
          # This is to scroll through the page
          if input_lang != output_lang:
              total_height = int(driver.execute_script(&quot;return document.body.scrollHeight&quot;))
              divisions = total_height // 20
  
              for i in range(1, total_height, divisions):
                  driver.execute_script(&quot;window.scrollTo(0, {});&quot;.format(i))
                  time.sleep(3)
              driver.execute_script(f&quot;window.scrollTo(0, {total_height});&quot;)
              time.sleep(4)
  </code></pre>
  <p>Is there a way I can find all hidden element with text and loop click through them so they become visible?
  Any help will be appreciated</p>