diff --git a/docs_source_files/content/support_packages/working_with_select_elements.nl.md b/docs_source_files/content/support_packages/working_with_select_elements.nl.md index c6bb832d59c0..c47fdcd6a7b0 100644 --- a/docs_source_files/content/support_packages/working_with_select_elements.nl.md +++ b/docs_source_files/content/support_packages/working_with_select_elements.nl.md @@ -22,7 +22,7 @@ import org.openqa.selenium.support.ui.Select; from selenium.webdriver.support.select import Select {{< / code-panel >}} {{< code-panel language="csharp" >}} -// We don't have a C# code sample yet - Help us out and raise a PR +using OpenQA.Selenium.Support.UI {{< / code-panel >}} {{< code-panel language="ruby" >}} include Selenium::WebDriver::Support @@ -48,7 +48,8 @@ select_element = driver.find_element_by_id('selectElementID') select_object = Select(select_element) {{< / code-panel >}} {{< code-panel language="csharp" >}} -// We don't have a C# code sample yet - Help us out and raise a PR +IWebElement selectElement = driver.FindElement(By.Id("selectElementID")); +var selectObject = new SelectElement(selectElement); {{< / code-panel >}} {{< code-panel language="ruby" >}} select_element = driver.find_element(id: 'selectElementID') @@ -100,7 +101,14 @@ select_object.select_by_value('value1') select_object.select_by_visible_text('Bread') {{< / code-panel >}} {{< code-panel language="csharp" >}} -// We don't have a C# code sample yet - Help us out and raise a PR +// Select an