dragAndDropToObject
dragAndDropToObject
COMMENT
Drag the image to the rectangles one by one
open
https://sideex.github.io/example/webpage_under_test/drag-image-into-object.html
COMMENT
Drop the image to the first rectangle
dragAndDropToObject
id=drag1
//div[@id='dragAndDropDiv']/img[1]
//img[1]
//img[@id='drag1']
css=#drag1
//div[@id='dragAndDropDiv']/div[1]
//div[1]/div[1]/div[1]
css=#dragAndDropDiv > div:nth-child(2)
COMMENT
Pause for 1 second
pause
1000
COMMENT
Drop the image to the second rectangle
dragAndDropToObject
id=drag1
//div[@id='dragAndDropDiv']/div[1]/img[1]
//img[1]
//img[@id='drag1']
css=#drag1
//div[@id='dragAndDropDiv']/div[2]
//div[2]
css=div:nth-child(3)
COMMENT
pause for 1 second
pause
1000
COMMENT
Drop the image to the third rectangle
dragAndDropToObject
id=drag1
//div[@id='dragAndDropDiv']/div[2]/img[1]
//img[1]
//img[@id='drag1']
css=#drag1
//div[@id='dragAndDropDiv']/div[3]
//div[3]
css=div:nth-child(4)