After installed close the NuGet packages window. Select Selenium.WebDriver and Select Selenium.support and click on install option symbol and wait until downloaded. Click on Browse option and type selenium webDriver and Selenium Support in the search box and click enterĭ. Mouse hover on FileUploadDemo project name at right hand side of the screen(Solution Explorer) and right clickĬ. Then it will create one project with namespace FileUploadDemo and automatically will create the Class file with name Program.csĪ. Step 2: After that create a new demo projectįile->New Project->Installed–>Visual C#->Console Application->(Enter name of the project) FileUploadDemo ![]() In that folder save the image as PhotoImage.jpeg Step 1: Save the image file in any folder, ex: In C:\Images(Folder name) ![]() So I am going to post an article about how to write the code for Selecting files from the local computer and what references and packages we need to download in selenium.įor example: Upload PhotoImage.jpeg file from your local system At my work place one new tester needed help to write automation script to upload files in Selenium C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |