Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Not able to find the locator which is inside a component in Cypress

I am trying to find the dropdown-arrow locator. I have used the cypress cmd - cy.get('.dropdown-arrow').click() but it gives element not found error.

Here is my code

<widgets-bms-scoreboard>
    <div class="1">
        <div class="wrapper">
            <div class="header">
                <div class="dropdown">
                    <div class="dropdown-arrow"> </div>
                </div>  
            </div>
        </div>
    </div>  
</widgets-bms-scoreboard>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

From comments, shadow DOM is present. You can access elements within it either by adding this to cypress.json

{
  "includeShadowDom": true
}

or in the test

cy.get('widgets-bms-scoreboard')
  .shadow()
  .find('.dropdown-arrow').click()
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!