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

243
Views
NoSuchElementError: no se puede localizar el elemento

Estoy usando Selenium WebDriver para buscar en Salesforce AppExchange. Este código funcionó antes, pero por alguna razón dejó de funcionar debido a que no se encontró el elemento. He intentado usar varias sugerencias diferentes a través de la red:

 await driver.get("https://appexchange.salesforce.com/"); for (i = 0; i < searchWords.length; i++) { /*await driver.wait(until.elementLocated(By.xpath('//input[@class="bar-input"]')),20000, 'Timed out after 20 seconds', 4000).then(elem =>{ elem.sendKeys(`${searchWords[i]}`, webdriver.Key.ENTER); });*/ search = await driver.findElement(By.xpath('//input[@class="bar-input"]')); await driver.wait(until.elementIsVisible(search),100); //search = await driver.findElement(By.css('.bar-input'));
Algunos están en el comentario debido a los diferentes intentos... El "esperar (hasta que.elementLocated" falla cada vez. El controlador.esperar falla: NoSuchElementError: No se puede ubicar el elemento: //input[@class="bar-input"] I he probado css, xpath, By.class, xpath completo...

He probado ChromeDriver y FireFoxDriver. Agradecería cualquier idea sobre esto

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!