How to usethe upload button in YouTube using Selenium WebDriver C# -
i trying make youtube video uploader upload video single click. far managing http://www.youtube.com/upload page, can not find way use button upload video.
after little research have found out proper way upload file uploadvid.sendkeys("c:\\video.flv");. far @ point:
// iwebelement uploadvid = driver.findelement(by.id("start-upload-button-single")); // iwebelement uploadvid = driver.findelement(by.xpath("//*[@id=\"upload-prompt-box\"]/div[1]")); // iwebelement uploadvid = driver.findelement(by.xpath("//*[@id=\"start-upload-button-single\"]")); iwebelement uploadvid = driver.findelement(by.classname("upload-drag-drop-description")); uploadvid.sendkeys("c:\\video.flv"); the lines have commented out have tried far without success. keep getting error element not found .
i use c# selenium webdriver in vs2013, wpf.
Comments
Post a Comment