title: Finding the mouse position in Cypress
body: <h2>Problem/Desire</h2>
  
  <p>Im currently trying to find the position of my mouse when testing in Cypress. I'm trying to work with WebGL models and since I can't grab those individually to be able to grab the model and move them around I was thinking of using the page coordinates/mouse position so its close enough. </p>
  
  <h2>Found a possible solution</h2>
  
  <p>I had found a closed issue on Cypress' github about this, but it wouldn't install so if any of you know why it's throwing the attached error or an easier way to find out what the position is let me know! It will be greatly appreciated. </p>
  
  <p><a href="https://github.com/BioRender-Team/cypress-mouse-position" rel="nofollow noreferrer">Cypress closed issue | Mouse position</a></p>
  
  <h2>Photo of error in terminal</h2>
  
  <p>(sorry for the bad pen marking; trying to scribble out my last name)
  <a href="https://i.stack.imgur.com/b7zAB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b7zAB.png" alt="enter image description here"></a>
  I ran the code given in the closed issue which was: </p>
  
  <p><code>npm i -D cypress-mouse-position</code></p>
  
  <p>then added these in the two files: </p>
  
  <p><code>cypress/plugins/index.js</code></p>
  
  <pre><code>
  module.exports = (on, config) =&gt; {
    # ...
    initCypressMousePositionPlugin(on);
    # ...
  }
  </code></pre>
  
  <p><code>cypress/support/index.js</code></p>
  
  <pre><code>import 'cypress-mouse-position/commands';
  </code></pre>