title: Cypress | SyntaxError: Unexpected token, expected "," while parsing file:
body: <p>I am trying to automate an application developed with React and Sass. This is the xpath I wrote for an element</p>
  <p>//span[contains(@class,'BettingAdd__Single ewp79e31')]/parent::div/preceding-sibling::div[2]</p>
  <p>The automation tool is Cypress. VS code is the editor I'm using for scripting. When I using this xpath and try to execute my script, it gives an error.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Users/Frontend Automation/cypress/integration/examples/silkpath.spec.js: Unexpected token, expected "," (25:42)
  
    23 | 
    24 |       
  &gt; 25 |         cy.xpath('//span[contains(@class,'BettingAdd__Single               ewp79e31')]/parent::div/preceding-sibling::div[2]').click();
       |                                           ^
    26 | 
    27 |         })
    28 |          while parsing file: /Users/Frontend Automation/cypress/integration/examples/silkpath.spec.js
  GET /__cypress/tests?p=cypress/integration/examples/silkpath.spec.js 200 0.496 ms - -
  GET /sw.js 200 559.189 ms - -</code></pre>
  </div>
  </div>
  </p>
  <p>Is that mean Cypress can not identfy an xpath like this?
  Can someone help me with this?</p>