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

196
Views
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
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!