Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 20, 2016 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/b2d168f27bc9a75b4e78 to your computer and use it in GitHub Desktop.
Save angelovstanton/b2d168f27bc9a75b4e78 to your computer and use it in GitHub Desktop.
[TestMethod]
public void FileUpload()
{
this.driver.Navigate().GoToUrl(
@"https://demos.telerik.com/aspnet-ajax/ajaxpanel/application-scenarios/file-upload/defaultcs.aspx");
IWebElement element =
driver.FindElement(By.Id("ctl00_ContentPlaceholder1_RadUpload1file0"));
String filePath =
@"D:\Projects\PatternsInAutomation.Tests\WebDriver.Series.Tests\bin\Debug\WebDriver.xml";
element.SendKeys(filePath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment