on-internet
← Community

How to Handle Browser Popup (During the Download) using Java

Stack Overflow ·

currently we scrap the data from Websites using Web driver (Selenium)with Java, during that Scrapping we need to do some download process (i.e XML file Download), let me know how will handle the Browser Popup (save As Dialog) using Java <a href="javascript:downloadXML()"> <img width="40" height="20" border="0" name="imag34" alt="Download" src="/pair/img/tabs/downloadxml.gif"> </a> We are using the following code to click the above image driver.findElement(By.xpath("(//img[@alt='Download'])[3]")).click(); After clicking that image, it will open a "Save as.." popup. How do we go to that popup an

Comments

Sign in or sign up to comment and upvote.

No comments yet.