title: How can I play a youtube video [selenium]
body: <p>I want to play/pause a YouTube video in my python script but <code>driver.find_element_by_name(&quot;body&quot;).send_keys('keys.SPACE') </code>
  does not work</p>
  <p>As it does not work I'm using pyautogui.press(&quot;space&quot;) instead but I have to be in the page. Using the selenium method is it possible to send the key signal without having YouTube focused?</p>