Skip to content

Commit 0b350b9

Browse files
authored
Merge branch 'trunk' into example-dropdown
2 parents 09da4ef + f9a2160 commit 0b350b9

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

examples/javascript/test/actionsApi/mouse/dragAndDrop.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,16 @@ suite(function(env) {
2323
let result = await driver.findElement(By.id("drop-status")).getText();
2424
assert.deepStrictEqual('dropped', result)
2525
});
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+
});
2637
});
2738
});

website_and_docs/content/documentation/webdriver/actions_api/mouse.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ This method firstly performs a click-and-hold on the source element, moves to th
381381
{{< gh-codeblock path="/examples/ruby/spec/actions_api/mouse_spec.rb#L153-L158" >}}
382382
{{< /tab >}}
383383
{{< tab header="JavaScript" >}}
384-
// Add Code
384+
{{< gh-codeblock path="/examples/javascript/test/actionsApi/mouse/dragAndDrop.spec.js#L17-L21" >}}
385385
{{< /tab >}}
386386
{{< tab header="Kotlin" >}}
387387
// Add Code

website_and_docs/content/documentation/webdriver/actions_api/mouse.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ This method firstly performs a click-and-hold on the source element, moves to th
381381
{{< gh-codeblock path="/examples/ruby/spec/actions_api/mouse_spec.rb#L153-L158" >}}
382382
{{< /tab >}}
383383
{{< tab header="JavaScript" >}}
384-
// Add Code
384+
{{< gh-codeblock path="/examples/javascript/test/actionsApi/mouse/dragAndDrop.spec.js#L17-L21" >}}
385385
{{< /tab >}}
386386
{{< tab header="Kotlin" >}}
387387
// Add Code

website_and_docs/content/documentation/webdriver/actions_api/mouse.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ This method firstly performs a click-and-hold on the source element, moves to th
381381
{{< gh-codeblock path="/examples/ruby/spec/actions_api/mouse_spec.rb#L153-L158" >}}
382382
{{< /tab >}}
383383
{{< tab header="JavaScript" >}}
384-
// Add Code
384+
{{< gh-codeblock path="/examples/javascript/test/actionsApi/mouse/dragAndDrop.spec.js#L17-L21" >}}
385385
{{< /tab >}}
386386
{{< tab header="Kotlin" >}}
387387
// Add Code

website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ This method firstly performs a click-and-hold on the source element, moves to th
381381
{{< gh-codeblock path="/examples/ruby/spec/actions_api/mouse_spec.rb#L153-L158" >}}
382382
{{< /tab >}}
383383
{{< tab header="JavaScript" >}}
384-
// Add Code
384+
{{< gh-codeblock path="/examples/javascript/test/actionsApi/mouse/dragAndDrop.spec.js#L17-L21" >}}
385385
{{< /tab >}}
386386
{{< tab header="Kotlin" >}}
387387
// Add Code

0 commit comments

Comments
 (0)