Есть такой код:
instance.ActiveTab.FindElementByAttribute("button", "class", "browser button button-hero", "regexp", 0).Click();
System.Threading.Thread.Sleep(1 * 1000);
instance.SetFileUploadPolicy("ok", "");
instance.SetFilesForUpload(Path.Combine(project.Directory...