Comments (12)
This feature already in place:
I've checked following script and it works in Chrome 39.0.2171.95 & IE 11 on my Windows 64
module.exports = {
'fileupload' : function (test) {
//https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value
var pathToFile = 'C:\\test.txt';
test
.open('http://www.cs.tut.fi/~jkorpela/forms/file.html')
.type('p input[type="text"]', 'out of there')
.type('p input[type="file"]', pathToFile)
.click('p + p + div input[type="submit"]')
.wait(1000)
.screenshot('sc1.jpg')
.assert.text('table tr:first-child td tt').is('out of there')
.assert.text('table tr:last-child td i').not.is('(empty)')
.done();
}
};
Let me know if it work for you
@asciidisco Can this approach be added to the documentation?
from dalek.
can we test for image upload with dalekjs…cuz i need to test for my project where i have to upload images and videos….
from dalek.
The possibility to add this functionality exists, at least you can set up a workflow using the available Webdriver commands that should work.
This is not an easy task (I would also love to have this in), but without 3rd party contributions, I do not believe that this will happen anytime soon.
from dalek.
Ok ….will be looking forward for this functionality on Dalekjs in future….
from dalek.
Voting as well for this feature. Being able to select a file from the file dialog would help tremendously.
from dalek.
from dalek.
from dalek.
from dalek.
from dalek.
We are evaluating pure js alternatives to selenium when I came across dalek.
File upload is core thing for app. :|
from dalek.
Thanks for your answer. :-)
For now, I have decided to give theintern a try this weekend.
Is this project alive and going to get production ready soon? Ref: theintern/intern#334
from dalek.
So,
Is that possible to upload the file using Dalek at this very moment?
Haven't found anything in the documentation.
Does the solution from @gskachkov work? Is this an recommended way to solve the issue?
Regards,
from dalek.
Related Issues (20)
- dalek callback or custom functions HOT 1
- resize doesnt work properly HOT 1
- add a working test for the actions HOT 1
- Firefoxdriver and ios doesn't work HOT 2
- .assert.dialogText.is crash dalekjs! :(
- dalekjs cannot detect d3 svg element
- JSON reporter settings
- Assertions CaSe sensitivity
- Run DalekJs tests on Travis
- Unable to stop test suite HOT 1
- Pass custom parameters to dalek command HOT 1
- Issue Installing on Win 8 HOT 16
- Dependencies less strict for supported internal dependency versions
- can i use regular expressions on Dalek? HOT 1
- Capturing errors from requests
- Close Browser with casperjs
- phatomjs crashed
- DalekJS v0.0.5 installation hung on Windows 10 HOT 3
- [email protected]
- DalekJS is unmaintained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dalek.