diff --git a/docs_source_files/content/support_packages/browser_navigation.en.md b/docs_source_files/content/support_packages/browser_navigation.en.md index 28a0c99667c6..92fb0a02c42a 100644 --- a/docs_source_files/content/support_packages/browser_navigation.en.md +++ b/docs_source_files/content/support_packages/browser_navigation.en.md @@ -71,7 +71,21 @@ driver.navigate.back driver.navigate.refresh {{< / code-panel >}} {{< code-panel language="javascript" >}} -// We don't have a JavaScript code sample yet - Help us out and raise a PR +# Navigate to a URL (both of the statements below are +# functionally equivalent). +driver.get("https://www.google.com"); +driver.navigate().to("https://www.google.com"); + +# Go forward one page in the browser (if you're not on the +# last page that was viewed). +driver.navigate().forward(); + +# Go back one page in the browser (if you're not on the +# first page that was viewed). +driver.navigate().back(); + +# Refresh the current page. +driver.navigate().refresh(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} // Navigate to a URL (both of the statements below are diff --git a/docs_source_files/content/support_packages/browser_navigation.es.md b/docs_source_files/content/support_packages/browser_navigation.es.md index 35cacc291926..f240862f606d 100644 --- a/docs_source_files/content/support_packages/browser_navigation.es.md +++ b/docs_source_files/content/support_packages/browser_navigation.es.md @@ -77,7 +77,21 @@ driver.navigate.back driver.navigate.refresh {{< / code-panel >}} {{< code-panel language="javascript" >}} -// We don't have a JavaScript code sample yet - Help us out and raise a PR +# Navigate to a URL (both of the statements below are +# functionally equivalent). +driver.get("https://www.google.com"); +driver.navigate().to("https://www.google.com"); + +# Go forward one page in the browser (if you're not on the +# last page that was viewed). +driver.navigate().forward(); + +# Go back one page in the browser (if you're not on the +# first page that was viewed). +driver.navigate().back(); + +# Refresh the current page. +driver.navigate().refresh(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} // Navigate to a URL (both of the statements below are diff --git a/docs_source_files/content/support_packages/browser_navigation.fr.md b/docs_source_files/content/support_packages/browser_navigation.fr.md index 017b22303b85..c54f7dc37bba 100644 --- a/docs_source_files/content/support_packages/browser_navigation.fr.md +++ b/docs_source_files/content/support_packages/browser_navigation.fr.md @@ -77,7 +77,21 @@ driver.navigate.back driver.navigate.refresh {{< / code-panel >}} {{< code-panel language="javascript" >}} -// We don't have a JavaScript code sample yet - Help us out and raise a PR +# Navigate to a URL (both of the statements below are +# functionally equivalent). +driver.get("https://www.google.com"); +driver.navigate().to("https://www.google.com"); + +# Go forward one page in the browser (if you're not on the +# last page that was viewed). +driver.navigate().forward(); + +# Go back one page in the browser (if you're not on the +# first page that was viewed). +driver.navigate().back(); + +# Refresh the current page. +driver.navigate().refresh(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} // Navigate to a URL (both of the statements below are diff --git a/docs_source_files/content/support_packages/browser_navigation.ja.md b/docs_source_files/content/support_packages/browser_navigation.ja.md index 0e5fb4053581..262425552535 100644 --- a/docs_source_files/content/support_packages/browser_navigation.ja.md +++ b/docs_source_files/content/support_packages/browser_navigation.ja.md @@ -76,7 +76,21 @@ driver.navigate.back driver.navigate.refresh {{< / code-panel >}} {{< code-panel language="javascript" >}} -// We don't have a JavaScript code sample yet - Help us out and raise a PR +# Navigate to a URL (both of the statements below are +# functionally equivalent). +driver.get("https://www.google.com"); +driver.navigate().to("https://www.google.com"); + +# Go forward one page in the browser (if you're not on the +# last page that was viewed). +driver.navigate().forward(); + +# Go back one page in the browser (if you're not on the +# first page that was viewed). +driver.navigate().back(); + +# Refresh the current page. +driver.navigate().refresh(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} // Navigate to a URL (both of the statements below are diff --git a/docs_source_files/content/support_packages/browser_navigation.nl.md b/docs_source_files/content/support_packages/browser_navigation.nl.md index 31309df71cde..2aadd81da5e3 100644 --- a/docs_source_files/content/support_packages/browser_navigation.nl.md +++ b/docs_source_files/content/support_packages/browser_navigation.nl.md @@ -77,7 +77,21 @@ driver.navigate.back driver.navigate.refresh {{< / code-panel >}} {{< code-panel language="javascript" >}} -// We don't have a JavaScript code sample yet - Help us out and raise a PR +# Navigate to a URL (both of the statements below are +# functionally equivalent). +driver.get("https://www.google.com"); +driver.navigate().to("https://www.google.com"); + +# Go forward one page in the browser (if you're not on the +# last page that was viewed). +driver.navigate().forward(); + +# Go back one page in the browser (if you're not on the +# first page that was viewed). +driver.navigate().back(); + +# Refresh the current page. +driver.navigate().refresh(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} // Navigate to a URL (both of the statements below are diff --git a/docs_source_files/content/support_packages/browser_navigation.zh-cn.md b/docs_source_files/content/support_packages/browser_navigation.zh-cn.md index 4b0da78f3b94..2ea68a5d15ff 100644 --- a/docs_source_files/content/support_packages/browser_navigation.zh-cn.md +++ b/docs_source_files/content/support_packages/browser_navigation.zh-cn.md @@ -76,7 +76,21 @@ driver.navigate.back driver.navigate.refresh {{< / code-panel >}} {{< code-panel language="javascript" >}} -// We don't have a JavaScript code sample yet - Help us out and raise a PR +# Navigate to a URL (both of the statements below are +# functionally equivalent). +driver.get("https://www.google.com"); +driver.navigate().to("https://www.google.com"); + +# Go forward one page in the browser (if you're not on the +# last page that was viewed). +driver.navigate().forward(); + +# Go back one page in the browser (if you're not on the +# first page that was viewed). +driver.navigate().back(); + +# Refresh the current page. +driver.navigate().refresh(); {{< / code-panel >}} {{< code-panel language="kotlin" >}} // Navigate to a URL (both of the statements below are