Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7787577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:42:54+00:00 2026-06-01T20:42:54+00:00

One of our developers wants to run my data load framework on his Windows

  • 0

One of our developers wants to run my data load framework on his Windows 7 PC with IE 9, but when he tries, it immediately fails because it can’t find the first element we perform an action on (in this case, the username field).

I’ve never had a problem with this as Watir is really good about waiting for a page to finish loading before it moves on. I can run the same code from one of my PCs hitting his dev machine without a problem, but when he runs both my framework and the app locally, Watir doesn’t seem to be waiting for the page to finish loading (or the way his machine serves the page is tricking it).

He’s running Ruby 1.8.7 with Watir 1.9.1

Any ideas?

I can’t remember what it is that Watir polls to confirm that the page load is complete – please let me know if you do and that might be a hint for us to follow on the Dev PC.

Thanks!

-Tiffany

Adding some more details:

Our QA site isn’t public, but our production site is and since the first thing I hit is the login screen….

http://producer.icat.com

Here’s the code that is failing:

ie.text_field(:name, ‘j_username’).set(producer)

The error we’re getting is that the element doesn’t exist on the page when the developer tries to run my tests from his local machine where he’s also running the app under test.

This doesn’t happen on any other PC (he did this on his old machine all the time). There’s something weird happening where Watir is not waiting for the page to load – that’s why I’m wondering what Watir polls to make sure the page is loaded. I could add a workaround to make sure that the element is present before the test starts, but I don’t really want to do that for one Dev machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:42:56+00:00Added an answer on June 1, 2026 at 8:42 pm

    Move up to more current watir or better yet watir-webdriver and use the .when_present decorator?

    browser.text_field(:how, 'what').when_present.set 'john-doe'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of our developers used this call: TzSpecificLocalTimeToSystemTime() but unfortunately we cannot keep it
One of our staff members has lost his mailbox but luckily has a dump
This is a problem one of our developers brought to me. He stumbled across
One of our 'frontend' developers keeps requesting from us backend developers that the backend
We are a small team (3 developers) and one of our main clients is
Hi I have a early version of an Playbook app one of our developers
One of my client wants to open Apple's native weather app from our application.
Background: I am one of two developers on our team. We have been using
After updating to php 5.3 one of our systems has developed an interesting bug.
We developed an asp.net website for one of our customer. We followed our rules

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.