Hi
I am tryin to upload a file, I can pass the path and can press the UPLOAD button but then it is stuck and not closing to go back to previous window to update.
Even if I try manually by using mouse to close or even cancel the window, it doesn't work, tried both in Edge and Google with no luck
I'm using below to get the file path
Webdriver = driver.FindElement(By.XPath("//input[@type='file']"))
Webdriver.SendKeys("C:\Users\myuser\Desktop\aarf.pdf")
Then below to click UPLOAD so that it closes
Threading.Thread.Sleep(2000)
Webdriver = driver.FindElement(By.XPath("//button[@id='uploadFile']/span"))
Threading.Thread.Sleep(6000)
Webdriver.Click()
But it gets stuck, UPLOAD is pressed but then nothing happens