selenium - C# Webdriver - Upload file(silverlight) -


my c# webdriver automation script trying upload file using browse button silverlight object. please let me know how upload file using webdriver.

below code worked html file upload not in case of above scenario.

driver.findelement(by.xpath("//input[@id='fileinput']"), waittime).sendkeys("\\\\...\\....\\test.txt"); 

the file upload methods in webdriver intended work <input type='file'> elements. working non-html mechanisms of uploading files (which include silverlight , flash), you'll need investigate other libraries.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -