I am writing controls that work well with JavaScript, but they should work even without it. Now testing with selenium is great for me. But all tests with JavaScript disabled (in my browser) will not work with selenium. Is there a way to do an automatic test for this purpose?
WWW :: Mechanize and Test :: WWW :: Mechanize are two Perl modules for doing just that.
use Test::More tests => 5; use Test::WWW::Mechanize; my $mech = Test::WWW::Mechanize->new; # Test you can get http://petdance.com $mech->get_ok( "http://petdance.com" ); # Test the <BASE> tag $mech->base_is( 'http://petdance.com/', 'Proper <BASE HREF>' ); # Test the <TITLE> $mech->title_is( "Invoice Status", "Make sure we're on the invoice page" ); # Test the text of the page contains "Andy Lester" $mech->content_contains( "Andy Lester", "My name somewhere" ); # Test that all links on the page succeed. $mech->page_links_ok('Check all links');
I do not know Selenium, but with the NoScript Firefox extension you can disable scripts for each domain. Can you use this to enable Selenium but disable your page scripts?
Check out other automation packages like TestComplete or AutoIt
If this is just html without javascript, you can simply use the usual screenshot methods to compare the html downloaded from the server, what you expect does not need to be tested in a browser.
You can use Watir to test your web application.
http://wtr.rubyforge.org/