Skip to content
Permalink
Browse files

Modify: Removed unneccessary awaits for find element (#138) [deploy s…

…ite]

Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com>
  • Loading branch information
Harsha509 authored and diemol committed Dec 16, 2019
1 parent 6319f71 commit fc0464194d77a0f2157040755cd4df2488c4d784
Showing with 66 additions and 66 deletions.
  1. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.de.md
  2. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.en.md
  3. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.es.md
  4. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.fr.md
  5. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.ja.md
  6. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.ko.md
  7. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.nl.md
  8. +5 −5 docs_source_files/content/getting_started_with_webdriver/locating_elements.zh-cn.md
  9. +4 −4 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.de.md
  10. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.en.md
  11. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.es.md
  12. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.fr.md
  13. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ja.md
  14. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.ko.md
  15. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.nl.md
  16. +2 −2 docs_source_files/content/getting_started_with_webdriver/performing_actions_on_the_aut.zh-cn.md
  17. +1 −1 docs_source_files/content/webdriver/browser_manipulation.de.md
  18. +1 −1 docs_source_files/content/webdriver/browser_manipulation.en.md
  19. +1 −1 docs_source_files/content/webdriver/browser_manipulation.es.md
  20. +1 −1 docs_source_files/content/webdriver/browser_manipulation.fr.md
  21. +1 −1 docs_source_files/content/webdriver/browser_manipulation.ja.md
  22. +1 −1 docs_source_files/content/webdriver/browser_manipulation.ko.md
  23. +1 −1 docs_source_files/content/webdriver/browser_manipulation.nl.md
  24. +1 −1 docs_source_files/content/webdriver/browser_manipulation.zh-cn.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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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<IWebElement> 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<WebElement> = driver.findElements(By.cssSelector("#cheese li"))
@@ -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" >}}
@@ -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" >}}
@@ -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" >}}
@@ -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" >}}
@@ -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" >}}
@@ -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" >}}
@@ -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" >}}

0 comments on commit fc04641

Please sign in to comment.
You can’t perform that action at this time.