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

218
Views
How to access elements inside of a shadow DOM to use with synthetic scripted browser test(New Relic) with Node.js

I am trying to grab and click on a button with New Relic's synthetic scripted browser test utility but the element I'm trying to find is under a #shadow-root in the DOM. Node script looks like:

$browser.get('https://www.null.com').then(() => {
    return $browser.waitForAndFindElement($driver.By.className('btn'), 10000).click();
}):

But it errors out with:

Check failed with task timed out. Error: task timed-out waiting for element to be located using:By(css selector, .btn)

I'm asking to see if there is a work around for grabbing elements in the shadow DOM to be able to use with the selenium webdriver.

about 4 years ago · Juan Pablo Isaza
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!