-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HtmlUnit Type Error: Cannot find function #48
Comments
Can you try using this repo please:
|
Nerian, thanks. I've tried using your repo but when using it to running my features it won't rely on the akephalos driver but the rack test one. Meaning webrick is not launched and any visit that involves going out of my app won't work. |
Do you have this? Capybara.default_driver = :akephalos |
Yeah, I do, I could run my features with akephalos prior to adding your repo to my Gemfile. |
BTW, I am not using Rails but Sinatra. |
I tried something. Tell if it works: https://github.com/Nerian/akephalos/tree/emulation-ie7 gem 'akephalos', :git => "git://github.com/Nerian/akephalos.git", :branch=>"emulation-ie7" |
Mmm nah, it fails. Let me rethink. |
Ok, I did set html unit browser emulation to IE7. Check if your test works now. gem 'akephalos', :git => "git://github.com/Nerian/akephalos.git", :branch=>"emulation-ie7" |
Still no luck, I guess web server is getting launched because it takes longer to start but I get no feedback, I don't know if starts on the same port. I have edited my hosts file to have a dummy domain pointing to localhost and I setted an Nginx virtual host as a proxy for that domain into the port 9887 which is the one used by akephalos, all this because to test Facebook integration I need to provide a domain. |
Setting client.setThrowExceptionOnScriptError(false) as here solved the issue. https://github.com/windock/akephalos/commit/bb56c7575a515f8b878c7513b608788b23c7ee58 |
That's weird, that code it is actually in my that too. |
(3 years later) This solved my problem too. My "missing" function was |
Hi, I am trying to test Facebook connect integration with my app, I can login to facebook, and executing some javascript unauthorize my app for testing authorization. Shit happens when through akephalos I visit facebook authorizatation page and I press Allow, then I get this message:
here's a gist on how the error can be reproduced:
https://gist.github.com/799148
I googled about this and some posts suggest changing html unit browser emulation to IE7,
does akephalos provides an option for doing so?
The text was updated successfully, but these errors were encountered: