Quantcast
Channel: andthennothing.net: Selenium on Rails
Browsing latest articles
Browse All 26 View Live

Selenium on Rails

New version.Updates at the end.One of the things I like about Rails is the built-in support for testing – it’s almost hard not to write tests. But even if I write extensive tests (currently “Code to...

View Article



"Selenium on Rails" by YAChris

Hello, Thanks! I've wanted to try Selenium for quite some time, now I have no excuse :-). I'm curious about the line: > Selenium on Rails is disabled for production environments. since one thing...

View Article

"Selenium on Rails" by Jonas

You're welcome! It's easy to enable the plugin for production environment, just edit init.rb. But then you must make sure that the plugin isn't installed when you're putting the app into production...

View Article

"Selenium on Rails" by Wayne

There is a problem running this plugin with edge rails. I get a SeleniumController not found. It seems to be related to the reloading changes that have been checked in recently. Reverting back to...

View Article

"Selenium on Rails" by Wayne

Well scratch that, it's still not working. The current test suite pane is giving a RailsError with: undefined method `test_suite_name' There seems to be some problem with the modules/includes...

View Article


"Selenium on Rails" by Jonas

Thanks for letting me know Wayne! I'll try it on edge rail and see if I get the same error.

View Article

"Selenium on Rails" by Peter

This looks very promising. Good work!

View Article

"Selenium on Rails" by Jonas

Wayne, could you please try the new version out?

View Article


"Selenium on Rails" by Wayne

Suite, that works! (pardon the pun...) I was still getting unbalanced newlines (and 6 test failures), so I changed your clean_text method to: text.gsub("\t", ' ').gsub("\r\n", "").gsub("\n","") to just...

View Article


"Selenium on Rails" by Vincent

That's just awesome thanks! I gonna start using it. I've used the generator to produce a simple test and could run the tests. However, rake test produces errors: 28 tests, 58 assertions, 6 failures, 0...

View Article

"Selenium on Rails" by Shinya

Very nice plugin! I'm an author of Selenium IDE which has been released recently (see http://www.openqa.org/selenium-ide/), and I've added a custom format to Wiki that can be used to edit tests for...

View Article

"Selenium on Rails" by Shinya

Comment on Vincent's patch: I also had to modify it to skip files that end with "~", which is an Emacs backup file.

View Article

"Selenium on Rails" by Joe

I'm trying to use this (looks great), however I get errors when it tries to use element locators like "link=some link text to match" - it shows an error "Element link=some link text to match not found"...

View Article


"Selenium on Rails" by Jonas

Check the new version out and see if it addresses your issues! Shinya: Thanks! Selenium IDE looks great! I'll try it out some time... Joe: link=linktext doesn't work for me either, but I have no idea...

View Article

"Selenium on Rails" by Shinya

Jonas, thanks for the new version. It's working very well. I found that link= locator doesn't work in Selenium gem, but works if you install Selenium from svn into vendor/selenium/javascript. It seems...

View Article


"Selenium on Rails" by Shinya

What do you think about adding an option to disable Selenium in development environment? If you don't use fixtures, enabling Selenium in development environment would be useful. But if you do use...

View Article

"Selenium on Rails" by Jonas

Thanks for sorting that out Shinya! I agree that the plugin should only be available for test environment per default. It has been available for development due to convenience, but I'll change it.

View Article


"Selenium on Rails" by Eric

Great plugin! One thought: It would be really nice to be able to use ERB from within Selenese. This way, I could look up site configuration variables and use them in test cases, eliminating some...

View Article

"Selenium on Rails" by Jonas

Thanks Erik! I'll consider it, but isn't it good with duplication in this case? If the constants change for some reason, don't you want the tests to fail? Do you have any example of what kind of...

View Article

"Selenium on Rails" by Eric

OK, I decided to actually write some code. :-) Click on my name for a patch which enhances Selenium on Rails to support native Ruby test cases, including configuration data and URL routing.Here's a...

View Article

"Selenium on Rails" by Eric

Thanks for the cool plugin, Jonas! I agree, sometimes it's good to duplicate constants. Other times, though, I just want to write:|assertTitle|#{SITE_NAME}|...and not worry about updating a bunch of...

View Article


"Selenium on Rails" by Jonas

Nice patch Erik, good job! I've just browsed through the code briefly, but I have one question: don't you think it's better to use method_missing where no logic is required? It would result in less...

View Article


"Selenium on Rails" by Eric

I'm glad you like it! I included rdoc and test cases and tried to stick to your style as much as possible.And yes, method_missing would be a perfectly valid approach. I put in stubs for two reasons:It...

View Article

"Selenium on Rails" by lstrecv

http://svn.viney.net.nz/things/rails/plugins/selenium_testing/README Do you interface with this, use this?

View Article

"Selenium on Rails" by Jonas

No, the two plugins are two different solutions to the same problem. If you want to write the tests in Ruby and use my plugin, Erik's patch above is the closest match at the moment. Have you noticed...

View Article


"Selenium on Rails" by Jonas

Shinya: the new version is enabled for test environment only by default. Eric: your patch is included in the new version. Thanks a bunch!

View Article
Browsing latest articles
Browse All 26 View Live




Latest Images