Comments (8)
Appears htmlunit doesn't like something about the javascript. I find it easiest to debug these issues by making htmlunit's logging more verbose. See #50 for being able to configure this, but for now I usually bundle open and then change:
# lib/akephalos/htmlunit.rb
java.lang.System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "fatal")
to something like:
java.lang.System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "debug")
The debug level produces a lot (A LOT) of noise, but can definitely help pinpoint where the issue is.
from akephalos.
I receive the same exception when clicking on a link with a data-method="post" attribute. Switching the log-level to debug resulted in:
.2011/02/19 14:22:19:145 MEZ [DEBUG] HtmlElement - Firing Event mousedown (Current Target: HTMLElement for HtmlAnchor[<a href="/exports?export=type1" data-method="post" rel="nofollow">]);
2011/02/19 14:22:19:328 MEZ [WARN] SelectorSpecificity - Unhandled CSS selector type for specificity computation: '11'.
2011/02/19 14:22:19:330 MEZ [WARN] SelectorSpecificity - Unhandled CSS selector type for specificity computation: '11'.
2011/02/19 14:22:19:369 MEZ [DEBUG] HtmlElement - Firing Event mouseup (Current Target: HTMLElement for HtmlAnchor[<a href="/exports?export=type1" data-method="post" rel="nofollow">]);
2011/02/19 14:22:19:370 MEZ [DEBUG] HtmlElement - Firing Event click (Current Target: HTMLElement for HtmlAnchor[<a href="/exports?export=type1" data-method="post" rel="nofollow">]);
2011/02/19 14:22:19:381 MEZ [DEBUG] HTMLElement - Found attribute for evaluation of property "data-method" for of HTMLElement for HtmlAnchor[<a href="/exports?export=type1" data-method="post" rel="nofollow">]
2011/02/19 14:22:19:381 MEZ [DEBUG] HTMLElement - Found attribute for evaluation of property "data-method" for of HTMLElement for HtmlAnchor[<a href="/exports?export=type1" data-method="post" rel="nofollow">]
from akephalos.
senny, what did you do to get around this?
Unfortunately I've stared at this output for an hour to no avail. I'm getting to errors: one in this ticket, and another https://github.com/bernerdschaefer/akephalos/issues#issue/55
from akephalos.
I didn't have the time to debug the issue any further, I switched back to selenium...
from akephalos.
I have the same error,
in view
link_to "more pie", @pie, :method => 'put', :class => "pie_a_lot"
in rspec
click_on('more pie')
from akephalos.
Yeah, I'm getting this when telling capybara to click on a link issuing a POST request. It's not even a JS link. As in:
<a href="/therapy_sessions?time=1%3A00+PM" data-method="post" rel="nofollow">1:00 PM</a>
from akephalos.
I get this error if my page tested using akephalos icludes css file that contains:
.selectbox.items li>.item{color:#000;cursor:default;display:block;padding:4px 6px;text-decoration:none;}
The problem is with child selector: li>.item
from akephalos.
i got this issue and traced it back to a spot where jQuery was being used to modify an element that was not yet attached the DOM. something like:
jQuery("<div id='new-element'></div>").hide().etc()
which i could work around
from akephalos.
Related Issues (20)
- encoding problem HOT 1
- Cucumber scenario fails with spork and akephalos HOT 3
- page.evaluate_script('window.history.back()') does nothing
- Spork compatible HOT 18
- No such file or directory - java (Errno::ENOENT) HOT 1
- javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated (NativeException) HOT 3
- Connection refused on AWS works fine locally on osx and Linux HOT 3
- 60 second startup time HOT 1
- Unix Domain Sockets
- com.gargoylesoftware.htmlunit.ScriptException: Unexpected exception occurred while parsing HTML snippet: Property 'http://cyberneko.org/html/properties/balance-tags/fragment-context-stack' is not recognized. HOT 2
- OutOfMemoryError error HOT 1
- Unable to click delete link with confirm prompt HOT 1
- How to replace `switch_to` HOT 2
- java.lang.OutOfMemoryError HOT 5
- POST variables end up as GET variables HOT 2
- random but specific crash HOT 8
- multiple submits to/from same page only submit the first time HOT 5
- Capybara 1.0 compatibility HOT 2
- dom tree leaves end up on the wrong branches HOT 1
- MooTools Request not being submitted HOT 8
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 akephalos.