I have a project to automate and scrap a web. I have a problem when uploading an image. By means of sendkeys I can open the dialog window, enter the path of the file and press enter, but it is so fast that the image does not manage to load. I want that after entering the path in the dialogue window there is a pause, but after the pause the program no longer acts on that window and does not count the way to accept it.
System.Windows.Forms.SendKeys.Send("{ENTER}" + "C:\IMG_20170812_120255.jpg" + "{ENTER}")
Before this line I put with the tabulator on the button to load image. in this way it seems to work but the image never ends up loading, it may be a security page to avoid bots.