File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs_source_files/content/webdriver Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -851,7 +851,11 @@ driver.get("https://www.example.com")
851
851
text = driver.find_element(By.CSS_SELECTOR, "h1").text
852
852
{{< / code-panel >}}
853
853
{{< code-panel language="csharp" >}}
854
+ // Navigate to url
855
+ driver.Url="https://example.com ";
854
856
857
+ // Retrieves the text of the element
858
+ String text = driver.FindElement(By.cssSelector("h1")).Text;
855
859
{{< / code-panel >}}
856
860
{{< code-panel language="ruby" >}}
857
861
# Navigate to url
Original file line number Diff line number Diff line change @@ -851,11 +851,7 @@ driver.get("https://www.example.com")
851
851
text = driver.find_element(By.CSS_SELECTOR, "h1").text
852
852
{{< / code-panel >}}
853
853
{{< code-panel language="csharp" >}}
854
- // Navigate to url
855
- driver.Url="https://example.com";
856
854
857
- // Retrieves the text of the element
858
- String text = driver.FindElement(By.cssSelector("h1")).Text;
859
855
{{< / code-panel >}}
860
856
{{< code-panel language="ruby" >}}
861
857
# Navigate to url
You can’t perform that action at this time.
0 commit comments