It's technical blog related selenium automation scripting. It explains most of the features in selenium webdriver to automate web applications.
Monday, 21 November 2011
Upload a file using selenium webdriver with CSharp
driver.Navigate().GoToUrl("http://www.freeonlinephotoeditor.com/");
IWebElement element=driver.FindElement(By.Id("file"));
element.SendKeys("d:\\anji.jpg"); //path of a file
driver.FindElement(By.Name("upload")).Click();
No comments:
Post a Comment