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

92
Views
How would I target this tag in puppeteer

I was doing an automation fun project and I choose this website https://agoodmovietowatch.com/ this is a single-page website so to target the sign-up link I inspect and find that this sign-up link is not a

<a>  
tag but an
<h6>  
tag and I cant able to target it, I tried all combinations to select it every class it contains but failed. If someone knows so tell me, please.

here is my code :

await page.waitForSelector("div.tss-1xh7ius-secondaryLinksContainer.MuiBox-root.mui-0 div.text_container__2Nx5h.tss-w9yc2n-secondaryLink.MuiBox-root.mui-0");

await page.click("div.tss-1xh7ius-secondaryLinksContainer.MuiBox-root.mui-0 div.text_container__2Nx5h.tss-w9yc2n-secondaryLink.MuiBox-root.mui-0");
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Here is a working solution:

const signUpBtn = await page.$(".tss-1xh7ius-secondaryLinksContainer > div")
await signUpBtn.click()

And to select "the very best", you can use:

await page.click(".tss-1ch6vtq-buttonsContainer :first-child")

If you want to learn more about CSS selectors, I recommend checking out this nice and funny teaching website: CSS Diner

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!