how to trigger .onDragEnter
function, like this one
// init
// open page, wait load
const actions = await driver.actions();
const da1 = await driver.findElement(By.css('#todrag > span'));
const da2 = await driver.findElement(By.css('#mydropzone'));
await actions.dragAndDrop(da1, da2).perform();
.dragAndDrop()
is not working, same as:
await actions.move({origin: da1}).press().move({origin: da2}).release().perform();
sounds like a bug yet
specially because of my left click after .perform()
, it stucks (sometime) & spawns [Draggable 1]
item/obj to the my real one mouse icon
#answer
cruisepandey > Are you sure that you are not missing .build.perform()
?
.build.perform(); aaTypeError: Cannot read property 'perform' of undefined
.build().perform(); TypeError: actions.dragAndDrop(...).build is not a function
.build.perform(); aaTypeError: Cannot read property 'perform' of undefined
.build().perform(); TypeError: actions.move(...).press(...).move(...).release(...).build is not a function