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

  • Home
  • SEARCH
  • 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 5998311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:23:18+00:00 2026-05-23T00:23:18+00:00

We maintain a library used by test scripts which do system level testing. Part

  • 0

We maintain a library used by test scripts which do system level testing. Part of the system under test is a website, and to navigate and interact with the website we use JPype to control Selenium 2.0’s webdriver. Selenium 2.0 has a Java and C# interface, and for the time being we can’t rewrite out test library using either Java or C#, which is why we use JPype to control it. This system was built by someone who recently left the company, and I’m coming up to speed on it now.

Whenever we interact with the website, we’re using time.sleeps:

self.browserDict['Driver'].findElement(self.browserDict['By'].id(byId)).click()
time.sleep(_AJAX_TIMEOUT)

>>> self.browserDict['Driver']
<jpype._jclass.org.openqa.selenium.firefox.FirefoxDriver object at 0x0626DD30>
>>> byId
'login_submit'

Any time we click no something, there is a time.sleep() to wait for the next page to load. We have a lot of AJAX, but it seems like there should be a way to wait for AJAX to finish loading. Before he left, the author of this tool explained that there’s an issue with either JPype or Selenium that prevents this. So far I can’t find this issue, but I also don’t know the wait command that would be used here.

Edit:
One option would be to use implicitlyWait, under the assumption that if the timeout were 6 seconds, it would return immediately after finding an element, however it seems to always wait the full 6 seconds when loading a page.

Edit2:
Python bindings directly to selenium 2.0 are now out, however there appears to be no way to wait for Ajax loads to finish with that library either: time.sleep(0.2) # Let the page load, will be added to the AP (from their example).

  • 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-05-23T00:23:18+00:00Added an answer on May 23, 2026 at 12:23 am

    ImplicitlyWait through JPype and the Java bindings works, and can fulfill the required need here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I maintain the build system at my company, which is currently using CVS. This
I am tasked to maintain and update a library which allows a computer to
I maintain an application which, during the course of two years, has constantly required
We have a core library in the form of a DLL that is used
We're considering using SSIS to maintain a PostgreSql data warehouse. I've used it before
Is there a way to instruct DCC32 to use the same library path that
I'm using a library written in C and the library provides headers which only
I'm designing an iOS static library that will be used by other developers. This
I maintain an ASP.NET MVC website that uses FormsAuthentication.SetAuthCookie(userName, createPersistentCookie); to sign users in
I maintain an old PC-only application written in Delphi 7. Although Delphi has served

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.