Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ driver.quit();
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
ChromeOptions chromeOptions = new ChromeOptions();
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.SetCapability("browserVersion", "78");
desiredCapabilities.SetCapability("platformName", "Windows 10");
IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), desiredCapabilities);
driver.Navigate().GoToUrl("http://www.google.com");
driver.Quit();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
caps = Selenium::WebDriver::Remote::Capabilities.chrome
Expand Down Expand Up @@ -113,7 +119,8 @@ driver.setFileDetector(new LocalFileDetector());
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
var allowsDetection = this.driver as IAllowsFileDetection;
allowsDetection.FileDetector = new LocalFileDetector();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.file_detector = lambda do |args|
Expand Down Expand Up @@ -142,7 +149,9 @@ upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
driver.Navigate().GoToUrl("http://sso.dev.saucelabs.com/test/guinea-file-upload");
IWebElement upload = driver.FindElement(By.Id("myfile"));
upload.SendKeys(@"/Users/sso/the/local/path/to/darkbulb.jpg");
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.navigate.to "http://sso.dev.saucelabs.com/test/guinea-file-upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ driver.quit();
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
ChromeOptions chromeOptions = new ChromeOptions();
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.SetCapability("browserVersion", "78");
desiredCapabilities.SetCapability("platformName", "Windows 10");
IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), desiredCapabilities);
driver.Navigate().GoToUrl("http://www.google.com");
driver.Quit();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
caps = Selenium::WebDriver::Remote::Capabilities.chrome
Expand Down Expand Up @@ -119,7 +125,8 @@ driver.setFileDetector(new LocalFileDetector());
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
var allowsDetection = this.driver as IAllowsFileDetection;
allowsDetection.FileDetector = new LocalFileDetector();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.file_detector = lambda do |args|
Expand Down Expand Up @@ -148,7 +155,9 @@ upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
driver.Navigate().GoToUrl("http://sso.dev.saucelabs.com/test/guinea-file-upload");
IWebElement upload = driver.FindElement(By.Id("myfile"));
upload.SendKeys(@"/Users/sso/the/local/path/to/darkbulb.jpg");
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.navigate.to "http://sso.dev.saucelabs.com/test/guinea-file-upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ driver.quit();
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
ChromeOptions chromeOptions = new ChromeOptions();
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.SetCapability("browserVersion", "78");
desiredCapabilities.SetCapability("platformName", "Windows 10");
IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), desiredCapabilities);
driver.Navigate().GoToUrl("http://www.google.com");
driver.Quit();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
caps = Selenium::WebDriver::Remote::Capabilities.chrome
Expand Down Expand Up @@ -119,7 +125,8 @@ driver.setFileDetector(new LocalFileDetector());
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
var allowsDetection = this.driver as IAllowsFileDetection;
allowsDetection.FileDetector = new LocalFileDetector();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.file_detector = lambda do |args|
Expand Down Expand Up @@ -148,7 +155,9 @@ upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
driver.Navigate().GoToUrl("http://sso.dev.saucelabs.com/test/guinea-file-upload");
IWebElement upload = driver.FindElement(By.Id("myfile"));
upload.SendKeys(@"/Users/sso/the/local/path/to/darkbulb.jpg");
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.navigate.to "http://sso.dev.saucelabs.com/test/guinea-file-upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ driver.quit();
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
ChromeOptions chromeOptions = new ChromeOptions();
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.SetCapability("browserVersion", "78");
desiredCapabilities.SetCapability("platformName", "Windows 10");
IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), desiredCapabilities);
driver.Navigate().GoToUrl("http://www.google.com");
driver.Quit();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
caps = Selenium::WebDriver::Remote::Capabilities.chrome
Expand Down Expand Up @@ -118,7 +124,8 @@ driver.setFileDetector(new LocalFileDetector());
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
var allowsDetection = this.driver as IAllowsFileDetection;
allowsDetection.FileDetector = new LocalFileDetector();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.file_detector = lambda do |args|
Expand Down Expand Up @@ -147,7 +154,9 @@ upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
driver.Navigate().GoToUrl("http://sso.dev.saucelabs.com/test/guinea-file-upload");
IWebElement upload = driver.FindElement(By.Id("myfile"));
upload.SendKeys(@"/Users/sso/the/local/path/to/darkbulb.jpg");
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.navigate.to "http://sso.dev.saucelabs.com/test/guinea-file-upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ driver.quit();
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
ChromeOptions chromeOptions = new ChromeOptions();
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.SetCapability("browserVersion", "78");
desiredCapabilities.SetCapability("platformName", "Windows 10");
IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), desiredCapabilities);
driver.Navigate().GoToUrl("http://www.google.com");
driver.Quit();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
caps = Selenium::WebDriver::Remote::Capabilities.chrome
Expand Down Expand Up @@ -119,7 +125,8 @@ driver.setFileDetector(new LocalFileDetector());
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
var allowsDetection = this.driver as IAllowsFileDetection;
allowsDetection.FileDetector = new LocalFileDetector();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.file_detector = lambda do |args|
Expand Down Expand Up @@ -148,7 +155,9 @@ upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
driver.Navigate().GoToUrl("http://sso.dev.saucelabs.com/test/guinea-file-upload");
IWebElement upload = driver.FindElement(By.Id("myfile"));
upload.SendKeys(@"/Users/sso/the/local/path/to/darkbulb.jpg");
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.navigate.to "http://sso.dev.saucelabs.com/test/guinea-file-upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ driver.quit();
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
ChromeOptions chromeOptions = new ChromeOptions();
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.SetCapability("browserVersion", "78");
desiredCapabilities.SetCapability("platformName", "Windows 10");
IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), desiredCapabilities);
driver.Navigate().GoToUrl("http://www.google.com");
driver.Quit();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
caps = Selenium::WebDriver::Remote::Capabilities.chrome
Expand Down Expand Up @@ -118,7 +124,8 @@ driver.setFileDetector(new LocalFileDetector());
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
var allowsDetection = this.driver as IAllowsFileDetection;
allowsDetection.FileDetector = new LocalFileDetector();
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.file_detector = lambda do |args|
Expand Down Expand Up @@ -147,7 +154,9 @@ upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
# We don't have a Python code sample yet - Help us out and raise a PR
{{< / code-panel >}}
{{< code-panel language="csharp" >}}
// We don't have a C# code sample yet - Help us out and raise a PR
driver.Navigate().GoToUrl("http://sso.dev.saucelabs.com/test/guinea-file-upload");
IWebElement upload = driver.FindElement(By.Id("myfile"));
upload.SendKeys(@"/Users/sso/the/local/path/to/darkbulb.jpg");
{{< / code-panel >}}
{{< code-panel language="ruby" >}}
@driver.navigate.to "http://sso.dev.saucelabs.com/test/guinea-file-upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading