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.