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

88
Views
Titiritero usando window.find y haciendo clic en un elemento

Estoy tratando de usar la ventana de titiritero. encontrar para buscar texto en la página web y, a su vez, hacer clic en el elemento encontrado. La función window.find funciona bien y resalta el texto relevante; sin embargo, no estoy seguro de cómo hacer clic en el texto resaltado después.

 <a class="govuk-link" rel="nofollow" href="/energy-certificate/4230-1322-4009-0714-2296" > Some Address </a>

También existe el problema de que hay múltiples '''govuk-link''' en la página web y parece hacer clic en el primero cuando se hace referencia

 if(const found = await page.evaluate(() => window.find("Some Address"))) { await page.waitForSelector('.govuk-link'); await page.click('.govuk-link') };

¿Cómo hago clic en el enlace resaltado por window.find? También intenté usar XPath, pero tengo el mismo problema con varios enlaces de govuk

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!