I have a question, I want to upload a file in a popup window that is open in my web application.
I can not inspect the element of the popup window, window that is opened (F12 not response in this window)
I try this solutions that not worked
WebDriver deiver2 = getWebDriver(); Thread.sleep(8000); Alert alert = deiver2.switchTo().alert(); alert.sendKeys("yyyyy");
the second attemp is:
WebDriver deiver2 = getWebDriver();
Thread.sleep(8000);
deiver2.switchTo()
.activeElement()
.sendKeys(
"yyyyy");
System.out.println("END");
In the first attempt it says that no alert exists. In the second attempt it passed but I do not see it feel value in the text field (still blank), How I can upload a file in selenium via popup. (and how to inspect the path field to locate the element in the new popup?)