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

198
Vistas
How to drag and drop image url with JS+webdriverio+jest

I'm trying to insert an image URL inside drag and drop field, or is it possible to attache image URL into drag and drop the field in test automation, I'm using JS/TS+webdriverio+jest I try to use samples from webdriverio docs

    const elem = await browser.$('/html/body/div[2]/div[3]/div/div/div[2]/div[2]/div[2]/div/div/ul/li/div/div[2]/div/div/div/div/div/div/span/img')
    const target = await browser.$('/html/body/div[2]/div[3]/div/div/div[2]/div[2]/div[1]/div/div/div/div[1]')
    await elem.dragAndDrop(target) 

but this code actually works if the element that needs drag and drop is already on the page, and I try to fill it with a URL image.

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