I use Watir to test web applications.
At application under test, after user is created I need to get her or his database id. I use it later to check if script is at the right page. For example, view user page url is
I have to know user database id to check URL.
A developer made XML page with all users. Only username and database id are displayed.
Script goes there and grabs database id.
And it works just fine.
Then, we imported data from production database. And my script returns this error:
There is user with username Aragón, and my script has a problem with it.
The solution? Install Ruby 1.8.3. or 1.8.4. and put this at the begging of your script: