Pages
-
Recent Posts
- Announcing ‘responsalizr’ – test HTTP Response Codes in Ruby
- Bewildr + Cucumber Example
- Counting strings in a file: Ruby vs Windows Command shell
- IronRuby vs. Gherkin – a temporary fix
- Learning Ruby? Here’s the book for you…
- Announcing ‘bewildr’ – test your WPF UI apps with IronRuby
- How to get the submodules of a ruby module
Recent Comments
- DotNetDevDude on Bewildr + Cucumber Example
- Nat on Counting strings in a file: Ruby vs Windows Command shell
- Neil on Counting strings in a file: Ruby vs Windows Command shell
- Andrew Grimm on Stop Ruby’s Test::Unit suite files running all your tests
- Nat on How to connect to an Oracle database in IronRuby
Tags
Abbot agile agile testing Automated Testing bewildr Books cheat sheet cucumber database Data Conversion Testing Example Code Exceptions FireBug Firefox Firewatir fitnesse Fix Internet Explorer IronRuby ISEB Java mac os x Maximo Mistakes MS Access NetBeans QA Rational Functional Tester Regular Expressions RQuery RSpec Ruby Ruby on Rails Safari SQL sqlite Standards Test::Unit Test Case Management Test Data testing Tools WATIR white win32oleCategories
- agile
- Automated Testing
- bewildr
- Books
- cucumber
- Data Conversion Testing
- Example Code
- fitnesse
- General Testing Stuff
- IronRuby
- Links
- Making Life Easier
- Manual Testing
- Mistakes
- Rational Functional Tester
- responsalizr
- RQuery
- RSpec
- Ruby
- Ruby on Rails
- Test Data
- Test Driven Development
- Test Management
- Test Management
- Test::Unit
- Testing Theory
- Tools
- Uncategorized
- WATIR
- white
- win32ole
Meta
This work by Nathaniel Ritmeyer is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported.
Tag Archives: Firewatir
Finding a form by xpath in Firewatir causes ‘Stack Level Too Deep’
If in a firewatir script you look for a form using xpath, you’ll get the following output: SystemStackError: stack level too deep from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelements.rb:72:in `locate’ from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1012:in `exists?’ from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:965:in `assert_exists’ from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1403:in `method_missing’ from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.2/lib/firewatir/htmlelements.rb:75:in `locate’ from /Library/Ruby/Gems/1.8/gems/firewatir-1.6.2/lib/firewatir/MozillaBaseElement.rb:1012:in `exists?’ … Continue reading
Posted in Automated Testing, WATIR
Tagged Automated Testing, Firefox, Firewatir, WATIR
Leave a comment
How to quit Firefox using FireWatir on a Mac
There seems to be a bug in the way that FireWatir on the mac quits firefox… it doesn’t! When you try, you end up with a dialog box saying: Close Firefox A copy of Firefox is already open. Only one … Continue reading
Posted in Automated Testing, Example Code, Ruby, Tools, WATIR
Tagged Automated Testing, Example Code, Firefox, Firewatir, Ruby, Tools, WATIR
Leave a comment
How to know if you have a secure session in Watir
Sometimes you’re on a secure page, sometimes you’re not. How to know? There’s a very simple method you can write to find out, based on the browser’s current url. Here’s the method: def is_session_secure? @browser.url =~ /^https/ ? true : … Continue reading
Posted in Example Code, Ruby, Test::Unit, WATIR
Tagged Automated Testing, Example Code, Firewatir, Regular Expressions, Ruby, Test::Unit, WATIR
Leave a comment
How to get only direct child objects in Watir
When you come across methods in watir that return child objects for the first time (eg: the ‘lis‘ in @browser.ul(:id,’main’).lis ) you’d think they’d return only the direct child objects. Frustratingly, they don’t. They’ll also return nested objects of the … Continue reading
Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Tools, WATIR
Tagged Automated Testing, Example Code, Firewatir, Ruby, Tools, WATIR
Leave a comment
How to check for errors on every page using Watir
Testing a web app in an unstable environment is a pain. Many tests will fail for environmental reasons and filtering out those results can take a while. To make this sort of thing less painful, Watir and its derivatives (eg: … Continue reading
Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Tools, WATIR
Tagged Automated Testing, Example Code, Firewatir, Ruby, Tools, WATIR
1 Comment
Fix for Firewatir visible? method
The visible? method in the ruby Firewatir 1.6.2 gem isn’t great. After some hunting around, I ended up here and found a working monkeypatch. Here’s the code: class Element def visible? assert_exists jssh_command = "var val = ‘true’; var str … Continue reading
Posted in Automated Testing, Example Code, Ruby, Tools, WATIR
Tagged Automated Testing, Example Code, Firefox, Firewatir, Fix, Ruby, Tools, WATIR
Leave a comment
FireWatir JSSH “Unable to connect” – FIXED!
Firewatir is awesome. But… sometimes Firefox takes too long to load (eg: if you have loads of plugins) causing firewatir to timeout and give the following error: Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that … Continue reading
Posted in Automated Testing, Example Code, Ruby, Tools, WATIR
Tagged Automated Testing, Example Code, Firefox, Firewatir, Fix, Ruby, WATIR
2 Comments














