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

241
Views
Estoy tratando de automatizar un inicio de sesión en una página usando titiritero, una vez que inicie sesión en la página siguiente, quiero hacer clic en un botón que está presente en la página siguiente

Para realizar la automatización en la página siguiente, tengo que escribir un código diferente en una función diferente, ya que la URL cambia después de iniciar sesión y el botón en el que estoy tratando de hacer clic en la página siguiente no tiene ninguna ID o CLASE. Aquí está el botón que estoy tratando de seleccionar:

 <div class="BenchTool NewEnquiry Orange" data-bind="click: Logic.Enquiry.NewEnquiry"> <div>&nbsp;</div> <span>New Enquiry</span> </div>

Aquí está el código que he escrito en titiritero

 const puppeteer = require("puppeteer"); async function main () { const browser = await puppeteer.launch({ headless: false }); const page = await browser.newPage(); await page.goto("https://onecall.linesearchbeforeudig.co.uk/uk-b4-en/Account/Login?returnUrl=%2Fuk-b4-en%2FWorkBench"); await page.$eval('input[name=emailOrUserName]', el => el.value = 'Pramod Rai'); await page.$eval('input[name=password]', el => el.value = '******'); await page.click('#acceptTermsAndConditions'); await page.click('#login-submit'); }; main();

Puedo iniciar sesión con este código pero no puedo hacer clic en el botón en la página siguiente, intenté presionar Enter que no funciona, también intenté hacer clic en él según las coordenadas, pero eso tampoco parece funcionar; cualquier ayuda será apreciada. ¡Gracias!

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!