Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Problem with page.uploadFile #12914

Closed
rdpanek opened this issue Jan 27, 2015 · 2 comments
Closed

Problem with page.uploadFile #12914

rdpanek opened this issue Jan 27, 2015 · 2 comments

Comments

@rdpanek
Copy link

rdpanek commented Jan 27, 2015

Hello everyone,
I have problem with page.uploadFile.

OS:
Yosemite 10.10.1

I try it on versions:
Phantomjs 1.9.7 (uploading file works) http://d.pr/i/12S4g
and
Phantomjs 2.0.0 (c8abe25) (uploading file does't work) http://d.pr/i/146KE

Example:

var page = require('webpage').create();
page.open('./form.html', function() {
  page.uploadFile('input[name=file]', './README.md');
  page.render('testForm.png');
  phantom.exit();
});

PhantomJS selftests:

ᐰ phantomjs test/run-tests.js
Started
..........................................................................................................................................................

Finished in 6.373 seconds
154 specs, 0 failures

I not found test for file upload :-(

Official documentation:
http://phantomjs.org/api/webpage/method/upload-file.html

Source:
https://github.com/ariya/phantomjs/blob/master/src/modules/webpage.js#L426

Where problem? Thanks

@ariya
Copy link
Owner

ariya commented Jan 27, 2015

This seems to be a duplicate of #12506 (please try to search for similar issue before filing a ticket).

@rdpanek
Copy link
Author

rdpanek commented Jan 27, 2015

I'm looking for and I not noticed, sorry. Thanks

@rdpanek rdpanek closed this as completed Jan 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants