From fc0464194d77a0f2157040755cd4df2488c4d784 Mon Sep 17 00:00:00 2001 From: Sri Harsha Date: Tue, 17 Dec 2019 04:36:16 +0530 Subject: [PATCH] Modify: Removed unneccessary awaits for find element (#138) [deploy site] Signed-off-by: Sri Harsha --- .../locating_elements.de.md | 10 +++++----- .../locating_elements.en.md | 10 +++++----- .../locating_elements.es.md | 10 +++++----- .../locating_elements.fr.md | 10 +++++----- .../locating_elements.ja.md | 10 +++++----- .../locating_elements.ko.md | 10 +++++----- .../locating_elements.nl.md | 10 +++++----- .../locating_elements.zh-cn.md | 10 +++++----- .../performing_actions_on_the_aut.de.md | 8 ++++---- .../performing_actions_on_the_aut.en.md | 4 ++-- .../performing_actions_on_the_aut.es.md | 4 ++-- .../performing_actions_on_the_aut.fr.md | 4 ++-- .../performing_actions_on_the_aut.ja.md | 4 ++-- .../performing_actions_on_the_aut.ko.md | 4 ++-- .../performing_actions_on_the_aut.nl.md | 4 ++-- .../performing_actions_on_the_aut.zh-cn.md | 4 ++-- .../content/webdriver/browser_manipulation.de.md | 2 +- .../content/webdriver/browser_manipulation.en.md | 2 +- .../content/webdriver/browser_manipulation.es.md | 2 +- .../content/webdriver/browser_manipulation.fr.md | 2 +- .../content/webdriver/browser_manipulation.ja.md | 2 +- .../content/webdriver/browser_manipulation.ko.md | 2 +- .../content/webdriver/browser_manipulation.nl.md | 2 +- .../content/webdriver/browser_manipulation.zh-cn.md | 2 +- 24 files changed, 66 insertions(+), 66 deletions(-) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.de.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.de.md index 057d6da0a15..2e7b4a80dfa 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.de.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.de.md @@ -29,7 +29,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -66,8 +66,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -112,7 +112,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -155,7 +155,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.en.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.en.md index 4b5a9346af1..adf190c3f66 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.en.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.en.md @@ -23,7 +23,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -60,8 +60,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -106,7 +106,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -149,7 +149,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.es.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.es.md index 897c56da595..ab47023b9cf 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.es.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.es.md @@ -22,7 +22,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -54,8 +54,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -84,7 +84,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -120,7 +120,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.fr.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.fr.md index 34701694716..87d446665d5 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.fr.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.fr.md @@ -30,7 +30,7 @@ IWebElement element = driver.FindElement(By.Id("fromage")); driver.find_element(id: "fromage") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const fromage = await driver.findElement(By.id('fromage')); +const fromage = driver.findElement(By.id('fromage')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -67,8 +67,8 @@ fromage = driver.find_element(id: "fromage") cheddar = fromage.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const fromage = await driver.findElement(By.id('fromage')); -const cheddar = await fromage.findElement(By.id('cheddar')); +const fromage = driver.findElement(By.id('fromage')); +const cheddar = fromage.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -111,7 +111,7 @@ driver.FindElement(By.CssSelector("#fromage #cheddar")); mucho_cheese = driver.find_elements(css: "#fromage #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#fromage #cheddar')); +const cheddar = driver.findElement(By.css('#fromage #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -153,7 +153,7 @@ IReadOnlyList pleinDeFromage = driver.FindElements(By.CssSelector( plein_de_fromage = driver.find_elements(css: "#fromage li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const pleinDeFromage = await driver.findElements(By.css('#fromage li')); +const pleinDeFromage = driver.findElements(By.css('#fromage li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.ja.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.ja.md index 7239fd9608f..4b7c7ac2d18 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.ja.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.ja.md @@ -28,7 +28,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -65,8 +65,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -111,7 +111,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -154,7 +154,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.ko.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.ko.md index 90f0f2d6b7b..432416c78da 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.ko.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.ko.md @@ -29,7 +29,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -66,8 +66,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -112,7 +112,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -155,7 +155,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.nl.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.nl.md index cff4ddbb6ac..ad2ea83b36c 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.nl.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.nl.md @@ -31,7 +31,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -67,8 +67,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -115,7 +115,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -158,7 +158,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/locating_elements.zh-cn.md b/docs_source_files/content/getting_started_with_webdriver/locating_elements.zh-cn.md index 735f6dd73c0..622b389b86e 100644 --- a/docs_source_files/content/getting_started_with_webdriver/locating_elements.zh-cn.md +++ b/docs_source_files/content/getting_started_with_webdriver/locating_elements.zh-cn.md @@ -28,7 +28,7 @@ IWebElement element = driver.FindElement(By.Id("cheese")); driver.find_element(id: "cheese") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); +const cheese = driver.findElement(By.id('cheese')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese: WebElement = driver.findElement(By.id("cheese")) @@ -65,8 +65,8 @@ cheese = driver.find_element(id: "cheese") cheddar = cheese.find_elements(id: "cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheese = await driver.findElement(By.id('cheese')); -const cheddar = await cheese.findElement(By.id('cheddar')); +const cheese = driver.findElement(By.id('cheese')); +const cheddar = cheese.findElement(By.id('cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val cheese = driver.findElement(By.id("cheese")) @@ -111,7 +111,7 @@ driver.FindElement(By.CssSelector("#cheese #cheddar")); mucho_cheese = driver.find_elements(css: "#cheese #cheddar") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const cheddar = await driver.findElement(By.css('#cheese #cheddar')); +const cheddar = driver.findElement(By.css('#cheese #cheddar')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} driver.findElement(By.cssSelector("#cheese #cheddar")) @@ -154,7 +154,7 @@ IReadOnlyList muchoCheese = driver.FindElements(By.CssSelector(“# mucho_cheese = driver.find_elements(css: "#cheese li") {{< / code-panel >}} {{< code-panel language="javascript" >}} -const muchoCheese = await driver.findElements(By.css('#cheese li')); +const muchoCheese = driver.findElements(By.css('#cheese li')); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val muchoCheese: List = driver.findElements(By.cssSelector("#cheese li")) diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.de.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.de.md index 7520e2af36c..8fdd6becf4b 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.de.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.de.md @@ -25,11 +25,11 @@ driver.FindElement(By.Name("name")).SendKeys(name); {{< / code-panel >}} {{< code-panel language="ruby" >}} name = "Charles" -driver.find_element(name: "name").send_keys(name) +await driver.find_element(name: "name").send_keys(name) {{< / code-panel >}} {{< code-panel language="javascript" >}} const name = "Charles"; -await driver.findElement(By.name('name')).sendKeys(name); +driver.findElement(By.name('name')).sendKeys(name); {{< / code-panel >}} {{< code-panel language="kotlin" >}} val name = "Charles" @@ -64,8 +64,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.en.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.en.md index c3b6baf214d..8a033197cf6 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.en.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.en.md @@ -59,8 +59,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.es.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.es.md index ae1db0f1336..8c85856729f 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.es.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.es.md @@ -58,8 +58,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.fr.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.fr.md index 5d008372eca..422d8d99441 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.fr.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.fr.md @@ -59,8 +59,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ja.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ja.md index 09b65f07c26..318f6429c1b 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ja.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ja.md @@ -64,8 +64,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ko.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ko.md index d520633de6b..1379928d183 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ko.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ko.md @@ -65,8 +65,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.nl.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.nl.md index c7c31fb34a1..3dfbb4bcd21 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.nl.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.nl.md @@ -59,8 +59,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.zh-cn.md b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.zh-cn.md index a5b6e4e313b..fe3fd96946f 100644 --- a/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.zh-cn.md +++ b/docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.zh-cn.md @@ -58,8 +58,8 @@ driver.action.drag_and_drop(source, target).perform {{< / code-panel >}} {{< code-panel language="javascript" >}} const actions = driver.actions({bridge: true}); -const source = await driver.findElement(By.id('source')); -const target = await driver.findElement(By.id('target')); +const source = driver.findElement(By.id('source')); +const target = driver.findElement(By.id('target')); await actions.dragAndDrop(source, target).perform(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} diff --git a/docs_source_files/content/webdriver/browser_manipulation.de.md b/docs_source_files/content/webdriver/browser_manipulation.de.md index f5d023a6894..88bef8572a0 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.de.md +++ b/docs_source_files/content/webdriver/browser_manipulation.de.md @@ -721,7 +721,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.en.md b/docs_source_files/content/webdriver/browser_manipulation.en.md index 325f517a997..7025273fe2e 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.en.md +++ b/docs_source_files/content/webdriver/browser_manipulation.en.md @@ -714,7 +714,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.es.md b/docs_source_files/content/webdriver/browser_manipulation.es.md index dbc4ab3cb22..4b6c2131b28 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.es.md +++ b/docs_source_files/content/webdriver/browser_manipulation.es.md @@ -720,7 +720,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.fr.md b/docs_source_files/content/webdriver/browser_manipulation.fr.md index 4de898580f2..da356fa5c09 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.fr.md +++ b/docs_source_files/content/webdriver/browser_manipulation.fr.md @@ -717,7 +717,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.ja.md b/docs_source_files/content/webdriver/browser_manipulation.ja.md index c6143198985..bf11c0271ac 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.ja.md +++ b/docs_source_files/content/webdriver/browser_manipulation.ja.md @@ -718,7 +718,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.ko.md b/docs_source_files/content/webdriver/browser_manipulation.ko.md index 9b154530fa9..103b9eee9a8 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.ko.md +++ b/docs_source_files/content/webdriver/browser_manipulation.ko.md @@ -720,7 +720,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.nl.md b/docs_source_files/content/webdriver/browser_manipulation.nl.md index 147a8656dad..8d3bcac7244 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.nl.md +++ b/docs_source_files/content/webdriver/browser_manipulation.nl.md @@ -717,7 +717,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe); diff --git a/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md b/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md index 574c36634f0..a8f20054ea1 100644 --- a/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md +++ b/docs_source_files/content/webdriver/browser_manipulation.zh-cn.md @@ -716,7 +716,7 @@ driver.find_element(:tag_name,'button').click {{< / code-panel >}} {{< code-panel language="javascript" >}} // Store the web element -const iframe = await driver.findElement(By.css('#modal > iframe')); +const iframe = driver.findElement(By.css('#modal > iframe')); // Switch to the frame await driver.switchTo().frame(iframe);