File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
examples/javascript/test/actionsApi/mouse Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,5 +23,16 @@ suite(function(env) {
23
23
let result = await driver . findElement ( By . id ( "drop-status" ) ) . getText ( ) ;
24
24
assert . deepStrictEqual ( 'dropped' , result )
25
25
} ) ;
26
+
27
+ it ( 'Onto Element' , async function ( ) {
28
+ await driver . get ( 'https://www.selenium.dev/selenium/web/mouse_interaction.html' ) ;
29
+ const draggable = driver . findElement ( By . id ( "draggable" ) ) ;
30
+ const droppable = await driver . findElement ( By . id ( "droppable" ) ) ;
31
+ const actions = driver . actions ( { async : true } ) ;
32
+ await actions . dragAndDrop ( draggable , droppable ) . perform ( ) ;
33
+
34
+ let result = await driver . findElement ( By . id ( "drop-status" ) ) . getText ( ) ;
35
+ assert . deepStrictEqual ( 'dropped' , result )
36
+ } ) ;
26
37
} ) ;
27
38
} ) ;
You can’t perform that action at this time.
0 commit comments