c# - Handle Document Download in Selenium -


i had automated tool in selenium using chrome driver navigates website,search , downloads documnet clicking on download button

when clicked download button opened in chrome pdf viewer, had disabled chrome driver as

 chromeoptions options = new chromeoptions();  options.addarguments("test-type");  options.addarguments("disable-popup-blocking");  options.addargument("disable-extensions");  options.adduserprofilepreference("plugins.plugins_disabled", new[] {                 "adobe flash player",                 "chrome pdf viewer"             });  options.adduserprofilepreference("download.default_directory", tempdownloadfolder);    iwebdriver webdriver = new chromedriver(chromebrowser_exe, options); 

now after clicking download button document being processed in browser , download full document.

i had used thread.sleep(180000) - 3 minutes wait document download , other proccess.

some documents being downloded within 1 minutes still waiting 3 minutes had set thread.sleep(180000).kindly guide me in step handle document download prcessing in selenium chrome driver


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -