opitzconsulting / uitest.js

uitest.js is able to load a webpage into a frame, instrument that page and the javascript in that page (e.g. add additional scripts at the end of the document, ...) and execute actions on that page.
MIT License
67 stars 8 forks source link

jQuery 2.x compatibility issue #30

Open sserdyuk opened 10 years ago

sserdyuk commented 10 years ago

First of all, thank you for making this available. We are just starting to use it and it looks very promising.

I have attempted to migrate to jQuery 2.x and discovered that the xhr feature is not compatible with the new version. I have attempted to fix it but gave up.

First, it throws an error because feature's proxy is limited to 3 call parameters and jQuery sends 5, but that was easy to fix by adding more "if" statements in that block. Once I fixed that though, the proxy stopped erroring but didn't start to work. The effect was that .done and .fail callbacks never fired after the request completed.

Hope this helps.