selenium webdriver - WebDriverError: File not found -


i getting selenium webdriver error:

webdrivererror: file not found: /users/foo/bar/nabisco/cdt-now/csv-data/it-de-yasper.csv 

the thing is, file totally exists on filesystem. selenium server running locally. not sure why cannot find file. know?

if use firefox 55, recent bug causes exception occur if file present. see https://github.com/mozilla/geckodriver/issues/858.

until bug fixed, there workaround: setting firefox preference "dom.file.createinchild" "true".

for instance:

firefoxprofile profile = new firefoxprofile(); profile.setpreference("dom.file.createinchild", true); desiredcapabilities capabilities = desiredcapabilities.firefox(); capabilities.setcapability(firefoxdriver.profile, profile); webdriver driver = new firefoxdriver(capabilities); 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -