Comments (5)
I have now also verified that this works perfectly with the selenium web driver.
from akephalos.
I even tried to press the button with javascript, and it still fails.
page.driver.execute_script("document.getElementById('save_button').click();")
from akephalos.
Hi Patrick,
I think that instructions sent to the HTMLUnit driver are atomic. Meaning the second click on the save button is not sent until the first has finished. It makes sense on a headlesss driver.
What happen if you do this?:
page.driver.execute_script("
document.getElementById('save_button').click();
document.getElementById('save_button').click();")
from akephalos.
Hi Nerian,
I am not actually trying to click a button twice. That is the result of narrowing the bug description down to a isolated case.
My need is to submit a form multiple times, like when you change search parameters and click ok.
It really bugs me that akephalos doesnt seem to support such behaviour.
I do not even receive a POST to apache on the second click with akephalos, no matter if its javascript, direct API calls or whatever.
I have full blown tests now that works perfectly with other drivers, but not at all with akephalos, as it refuses to POST to or from pages it has posted to/from before, or something like that.
I have not figured out exactly what in the code that does this. It seems to be deeper down into the htmlunit interface or something.
from akephalos.
Hi Patrick,
Do you still have this problem in https://github.com/Nerian/akephalos2 ?
I tried to reproduce this bug, but it works fine for me.
it "Should be able to make four requests to the same page" do
session.visit '/form'
session.click_button 'Submit'
session.click_button 'Submit'
session.click_button 'Submit'
session.body.should include('visit_number:4')
end
Is this what you were trying to do? Can you provide a failing example?
Issue a bug report at https://github.com/Nerian/akephalos2
Thanks
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
- 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.