search for: submit_form

Displaying 10 results from an estimated 10 matches for "submit_form".

2007 Jan 03
0
submit_form for Ajax via xhr
Railsters: The assert_select system has a submit_form method that reads your current page''s form, and submits all its fields with their data. This works great for Test Driven Development because it tests your current page''s form and your controller''s action at the same time. Is there a submit_form that calls xhr, to submit...
2007 Sep 25
7
simple story, extract link
hi, I just started fooling around with story runner, thought I''d start with a dead simple scenario: The first thing I do when describing a site to someone is go to the home page, and begin exploring public pages from there. So, that seems like a good first story to spec out. And I''d really like to extract the actual link from the rendered page (rather than just
2008 May 08
7
Rspec Stories / Selenium Nightmare
I have been using Rspec stories with Webrat feeling very productive and happy. Then I needed to do something with Selenium (Webrat could have done what I needed but it does not yet have the functionality). Selenium-core as part of a rails plugin looked nice but did not seem to fit with rspec stories. So I went the Selenium-rc route. Since Selenium uses a separate instance of rails
2008 Apr 09
13
submitting an ajax form via javascript not rendering
...t tried a page.insert as well, but no dice. The controller code is pretty standard .... render :update do |page| page.call "update_row", id,v1,v2,v3,v4,v5 end Here is a chunk of the rendered html, sorry, its not very pretty. <SCRIPT type="text/javascript"> function submit_form(obj, form_id) { document.getElementById(form_id).submit(); } </script> ..... <form action="/assignment/update_assignment/16" id="frm_16" method="post" onsubmit="new Ajax.Request(''/assignment/update_assignment/16'', {asynchronous:...
2007 Feb 14
5
FormTestHelper should change hidden fields
Railsoids: FormTestHelper rules. It tests your response.body form at the same time as it triggers your action, with all the parameters in that form. This obviously improves quality. But it took issue with this: submit_form ''validate_stuff'' do |form| form[''IBhidden''] = ''validate'' end The field IBhidden is a hidden field. To be fair, FTH erred on the side of matching what a user can do. Users can''t change hidden fields, so FTH threw "TypeErr...
2007 Oct 24
3
Working with the response DOM
Hi, Anyone know a way to traverse/query the DOM in a response? I''m trying to write reusable story step implementations and as much as possible want to work with the actual response from a previous GET. As an example, I often have buttons that POST/PUT a hidden value. My goal is a reusable step implementation that takes the button label and works the existing response DOM to make an
2015 Dec 23
5
Instrucciones uso rvest
Hola buenos días: Os remito una duda (en un documento word para su mejor expresión) sobre el uso de la libreria rvest. Mi problema es que como no soy informatico me pierdo un poco, he visto los ejemplos que hay colgados y los he seguido, pero el tema es que quiero acceder a los datos del INE, que en ocasiones estan un poco escondidos con menu de selecciones y no se como hacerlo con rvest para
2006 Jan 24
5
simple formmail question
I have a few forms that I''d like users to fill out. The results of the form will be sent to a few addresses. What''s the least painless way to do this and keep everything DRY? There''s no database involved. Ideally, I''d like to email the form questions with the answers inline. Seems like using ActionMailer and separate email views would be overkill in this
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It''s still missing a lot of functionality, but it''s useful to us as is, so I''m shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Bryan Here''s the README:
2008 Mar 13
22
Specifing methods in a steps_for block
Hey list, I''m refactoring some much-used functionality into a common_steps step group. Methods like this are in there: steps_for :common do Given "a number of existing $types?" do |type| @initial_item_count = type.singularize.classify.constantize.count end When "the user adds an invalid $type" do |type| post