title: Getting the onclick value without clicking Selenium
body: <p>I want to access a value on a website where I pull data. This value is a value when clicked on. However, I want to do it without clicking, because there are bot blockers, I should not interact too much. When I press f12, the value appears, but I cannot reach this value because it does not appear on the page. How can I do it.</p>
  <p>website's html</p>
  <pre><code>&lt;div onclick=&quot;TextClick(0)&quot;  class=&quot;classname&quot;&gt;Click and see value&lt;/div&gt;
  &lt;div id=&quot;details&quot; class=&quot;Box&quot;&gt;
      &lt;label&gt;value&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  <p>my code bot.py</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  import os
  browser = webdriver.Chrome()
  
  
  browser.get('https://www.examplewebsiteinhere.com')
  print(browser.find_element_by_css_selector('#Details &gt; label').text)
  </code></pre>
  <p>Thank you</p>