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 8455817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:22:59+00:00 2026-06-10T12:22:59+00:00

My code is such that before firing an ajax request, the table row has

  • 0

My code is such that before firing an ajax request, the table row has opacity 0.5 and once the ajax request is completed the opacity is 1

I am using the opacity of a table row in waitForCondition method to check if the ajax request has completed loading. The code is not working, it timesout every time. I have checked the values of opacity before and after the waitForCondition and the values returned are correct but still it is timing out.

the code which i have used is like this

<tr>
  <td>echo</td>
  <td>javascript{selenium.browserbot.getCurrentWindow().document.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0].style.opacity}</td>
  <td></td>
</tr>
<tr>
  <td>waitForCondition</td>
  <td>javascript{selenium.browserbot.getCurrentWindow().document.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0].style.opacity == 1}</td>
  <td>30000</td>
</tr>
<tr>
  <td>echo</td>
  <td>javascript{selenium.browserbot.getCurrentWindow().document.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0].style.opacity}</td>
  <td></td>
</tr>
  • 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-10T12:23:01+00:00Added an answer on June 10, 2026 at 12:23 pm

    I have got the solution for my issue.

    I didnt needed to use the javascript{} construct in waitForCondition, since this method implicitly considers that we are giving a javascript to this method.

    So, the correct expression is:

    <tr>
      <td>waitForCondition</td>
      <td>selenium.browserbot.getCurrentWindow().document.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0].style.opacity == 1</td>
      <td>30000</td>
    </tr>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In order to ensure that some initialization code runs before main (using Arduino/avr-gcc) I
Are there any tools that display output of a line of code such as
How can the code below be modified, such that I can use the arrow
Given the following code below, how can I have it modified such that it
Is it possible to include view code in a plugin, such that an app
Today, I found out that you can write such code in C++ and compile
I read that Windows wp8 allows native code. So how then have ports such
I'm writing some code that uses some unmanaged calls into user32 functions such as
Suppose I have code that maintains a parent/children structure. In such a structure I
What sort of code should I put in preamble, such that every math fomula

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.