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

Selenium tests? #1228

Closed
ghost opened this issue Apr 20, 2012 · 2 comments
Closed

Selenium tests? #1228

ghost opened this issue Apr 20, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 20, 2012

Hi,

I need solution for testing plugin with selenium. Anyone tried? Any ideas or clues?

I have only adding and removing files (upload immediately after add, jquery ui version)
Thanks!

@blueimp
Copy link
Owner

blueimp commented Apr 20, 2012

Testing browser-based file uploads is cumbersome due to security restrictions - this also applies to Selenium tests:
http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ#SeleniumCoreFAQ-Ican%27tseemtouseSeleniumCoretouploadafile%3BwhenItrytotypeinthefileuploadtextfield%2Cnothinghappens%21

The plugin comes with its own set of QUnit tests, which use bogus file objects instead of real files.
In browsers with support for the BlobBuilder interface it would be possible to test with real Blob objects.
Or alternative, using images as DataURI and converting them to Blobs using the canvasToBlob library.

@ghost
Copy link
Author

ghost commented Apr 20, 2012

Ah, I see.
I tried also with autoIT but still not what I am looking for. It seems that i need to do as you explained.

Thanks for response ;)

@ghost ghost closed this as completed Apr 20, 2012
This issue was closed.
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

1 participant