Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

238
Vistas
NoSuchElementError: Unable to locate element

I'm using Selenium WebDriver to search in Salesforce AppExchange. This code worked before, but for some reason it has stopped working due to element not been found. I've tried using several different suggestions over the network:

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'));
Some are in comment due to the different attempts... The "wait(until.elementLocated" fails everytime. The driver.wait fails: NoSuchElementError: Unable to locate element: //input[@class="bar-input"] I've tried css, xpath, By.class, full xpath...

I've tried both ChromeDriver and FireFoxDriver. Would appreciate any insight on this

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda