Note that there are some explanatory texts on larger screens.

plurals
  1. POrun the selenium as django command
    text
    copied!<p>I have the problem with downloading file from website using selenium in Django 1.3.(Python 2.7+).</p> <p>I have done the django management command to download the file in <strong>selenium firefox webdriver</strong></p> <p>Actually,the downloading box is in modal dialog,For solving this modal dialog problem I referred this <a href="https://stackoverflow.com/questions/1176348/access-to-file-download-dialog-in-firefox">post</a> </p> <p>Everything was fine in python console when testing the Django management command.since, command name is "download_keyword"</p> <pre><code> &gt;&gt;&gt;python manage.py download_keyword &gt;&gt;&gt; fp.set_preference("browser.download.dir",os.getcwd()) </code></pre> <p>The firefox downloaded file is not stored in this location.But it is downloading also No exception occurs.</p> <p>This is my firefox profile preferences:</p> <pre><code> fp = webdriver.FirefoxProfile() fp.set_preference("browser.download.folderList",2) fp.set_preference("browser.download.manager.showWhenStarting",False) print "DIR is..",DIR fp.set_preference("browser.download.dir",os.getcwd()) fp.set_preference("browser.helperApps.neverAsk.saveToDisk","text/csv") fp.set_preference("browser.helperApps.neverAsk.saveToDisk","application/csv") fp.set_preference("dom.max_script_run_time",600) fp.set_preference("dom.max_chrome_script_run_time",600) browser = webdriver.Firefox(firefox_profile=fp) </code></pre> <p>Even I have given the various location to store the downloading file from selenium firefox driver.Eventhough it is not stored in the given location.</p> <p>What i would supposed to do? suggest me for this error</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload