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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:25:02+00:00 2026-05-11T18:25:02+00:00

I am writing a Selenium test in PHP to check the performance of a

  • 0

I am writing a Selenium test in PHP to check the performance of a web application in Firefox. I want to use this as a base-line for comparing different performance enhancements (upgrading JQuery, PHP 5.3, etc.). The web application is very AJAX intense and so far I have only run into one problem.

I have an AJAX call that loads content into an existing div. To test if the call is complete I am using the following line of code:

$selenium->waitForCondition('$(\'div[id="divId"]\').height() > 100', $timeout);

This is working as I expected, but when I attempt to type into any input loaded into the div, selenium throws the error “Element input[@id=”inputId”] not found”.

I have verified that the id for the input is correct and I have tried with other input elements that are loaded inside the div and none of them work. I have also attempted to add a sleep(30) so that i know for sure the elements are in the DOM and on the screen, but again it made no difference.

I am really stuck at this point and can’t move on until I get this issue resolved. Any help is greatly appreciated.

Thanks,
James Armes

  • 1 1 Answer
  • 1 View
  • 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-11T18:25:03+00:00Added an answer on May 11, 2026 at 6:25 pm

    I’d look at a few things:

    1. Make sure that the condition you’re checking against isn’t true before the items are loaded. Checking height seems suspicious, for example — wouldn’t it be better to test if there are any children present inside the div?

    2. Depending on how you write the selector, Selenium may be thinking that input[@id='inputId'] is the actual identifier for the selector (and not just inputId). Make sure that this isn’t the case. Try just using inputId, which should be sufficient since it’s an identifier.

    3. Selenium can be finicky. Try different browsers to see if you get different results. If so, it may represent an area that Selenium’s not covering well. Although these are generally few and far between, it’s possible. But we’d need to see more code before it’d be sure that this is the case.

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

Sidebar

Related Questions

I have been writing Selenium test for web application and there seem to be
I am writing selenium scripts on a complex web based application. To use a
I am writing a test script using Selenium web driver (IE). I had no
I'm writing Selenium tests for an ASP application, and would like to test the
I am writing a Selenium test to validate an input form on my web
I'm writing a selenium grid test suite which is going to be run on
I'm writing automated UI tests in C# using Selenium 2 Web Driver for web
I'm using Selenium IDE 1.7.2 and Firefox 10.0.2 In the page which I'm writing
I am writing a selenium test and I need to assert that the page
I'm using Selenium RC with chrome-mode for Firefox to automate test cases for a

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.