Skip to content

UJS, Rails 3 and Rack-Test #64

Closed
josevalim opened this Issue Apr 8, 2010 · 8 comments

3 participants

@josevalim

Rails 3 uses data-method="delete" in link tags to mark the request method. Is it desirable to change Capybara Rack-Test driver to take it into account? This allows us to still use Rack-Test in app's early stages.

@jnicklas
Owner
jnicklas commented Apr 9, 2010

Now this I can get behind. This is sufficiently generic that other web frameworks could feasibly implement the same thing. I'd merge this into the mainline rack-test adapter.

@jnicklas
Owner
jnicklas commented Apr 9, 2010

Could you do a fork and pull request? I hate applying patches ;)

@josevalim

Btw, we can change the browser used for Selenium::Webdriver, like this:

require "selenium-webdriver"
Selenium::WebDriver.for :chrome

Do you think it's a good idea to add it to the README?

@jnicklas
Owner
jnicklas commented Apr 9, 2010

Thanks José!

That's a neat trick with selenium webdriver, might be nice to add this to the README, yes!

@jcoglan
jcoglan commented Apr 9, 2010

Can you switch browsers in Selenium during a test? I need to write some Cucumber tests that use several (real, not simulated) browsers at once, so would be great if Selenium supported this.

I'm currently going down the route of spiking a driver whose logic is mostly on the client side -- see http://github.com/jcoglan/terminus. Not much to it yet.

@jnicklas
Owner
jnicklas commented Apr 9, 2010

Theoretically: yes you could have different drivers for different webdriver backends, and then you'd be able to switch between them seemlessly with tags the same way.
Practically though this is not currently implemented.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.