Skip to content

Added CSharp Code in WebElement - GetElement Text #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs_source_files/content/webdriver/web_element.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ namespace FindElementsFromElement {

(async function example() {
let driver = new Builder()

.forBrowser('chrome')
.build();

Expand Down Expand Up @@ -534,6 +535,7 @@ Wird verwendet um das Element, das den Fokus hat zu finden oder um es zu verfolg
import org.openqa.selenium.By
import org.openqa.selenium.chrome.ChromeDriver


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AgileTestingAlliance,

I think we don't need an extra black line. Could you please remove the extra blank lines added in the code?

fun main() {
val driver = ChromeDriver()
try {
Expand Down Expand Up @@ -855,7 +857,12 @@ driver.get("https://www.example.com")
text = driver.find_element(By.CSS_SELECTOR, "h1").text
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// Please provide a pr for code sample

// Navigate to url
driver.Url="https://example.com";

// Retrieves the text of the element
String text = driver.FindElement(By.cssSelector("h1")).Text;
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
# Navigate to url
Expand Down
Loading