ruby - Feature Testing with Filepicker.io and Capybara -


i working on feature testing filepicker.io upload form , cannot file upload work. using poltergeist driver capybara , debugging have been able do, filepicker iframe never loading. have confirmed using remote debugging of poltergeist.

here sample of test code:

within_fieldset 'photos'   click_button 'find photo' end within_frame 'filepicker_dialog'   attach_file '#fileuploadinput', rails.root.join('spec', 'files', 'photo.jpg') end 

and error being produced:

failure/error: within_frame '#filepicker_dialog'  capybara::poltergeist::timeouterror:    timed out waiting response {"name":"push_frame","args":["#filepicker_dialog"]}. it's possible happened because took long time (for example page load slow). if so, setting poltergeist :timeout option higher value (see docs details). if increasing timeout not help, bug in poltergeist - please report issue tracker. 

attempting manually trigger filepicker through javascript console yields no results.

have tried increase timeout ?

capybara.javascript_driver = :poltergeist capybara.register_driver :poltergeist |app|   capybara::poltergeist::driver.new(app, {:timeout => 50}) end 

as default timeout 30


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -