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
Post a Comment