How to save PDf files in specific folder in c# selenium
Rakesh kumar
106
Reputation points
I have stored data in string variable and i need to get download PDF file in specific folder. Could you please help me
string download = EdgeObj.Driver.FindElement(By.XPath("/html/body/div/div/div[1]/div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div[3]/div/div[1]/div/div[2]/pre")).Text;
Directory.CreateDirectory(@"C:\Users\" + Environment.UserName + @"\Desktop\Image Retrival\" + Todaysdate);
Directory.CreateDirectory(@"C:\Users\" + Environment.UserName + @"\Desktop\Image Retrival\" + Todaysdate + @"\" + UserName);
Developer technologies Windows Forms
1,931 questions
Developer technologies .NET .NET Runtime
1,269 questions
Developer technologies .NET .NET CLI
350 questions
Microsoft Edge Microsoft Edge development

2,649 questions
Developer technologies C#
11,567 questions
Sign in to answer