-
Notifications
You must be signed in to change notification settings - Fork 5.7k
AJAX load + element replace (sometimes) fails #13881
Comments
Thank you for submitting this ticket! This issue tracker primarily serves as the tool to report and track bugs, defects, and development tasks.
If you have not read it yet, please check also a few tips on Effective Q&A. |
This is certainly a bug in PhantomJS, it looks like a race condition within PhantomJS. |
Sorry, but without a minimal test case or an example we can't help you in your situation. Thanks! |
I'm aware that race conditions are hard to find, and that you won't be able to do very much about my filed bug if you don't fancy intense debug sessions and/or parallel flow analysis. That doesn't change the fact that I reported a legit bug which should not be closed as long as it is not fixed. Closing the bug gives the idea that the problem does not exist. It hinders other people in similar situations to find the issue, etc. If I ever find a minimal test case I most probably already found the concrete race condition in the PhantomJS code, I would probably provide a pull request instead. Please keep bug reports open if they are valid bug reports, it is not only disrespectful but also a bad decision to prematurely close issues in open source projects. Thank you. |
I surely understand your position. We have enormous amount of issue here due to incredibly small amount of developers in the team. Your issue is about random race conditions, without a simple test case. A test case that we could use to reproduce described race condition or at least to try.
Thanks! You can find more information here: #13865 |
@drauch you'll be laughing at me. But I think I found the problem of your issue. |
@vitallium: Not laughing, would love to see this fixed. Had lost all hope before 👍 Edit: if you don't plan to fix this issue anytime soon due to time problems, we would be glad to hear more about the problem. Maybe we can provide a PR ourselves. |
Could you please check version from master? It should be fixed now. |
Is there a pre-built .NET assembly or do I have to compile phantomjs myself in order to test it? |
We have released a new version yesterday. This version includes the fix - https://bitbucket.org/ariya/phantomjs/downloads |
👍 going to give it a try asap! |
Unfortunately, the problem isn't fixed. 2.1.1 still gives us screenshots of the AJAX-response only. |
(on another note: when testing for a 404 page, we also get a screenshot of the previously visited page instead of a 404 page) |
Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
After AJAX requests (where the result is supposed to replace the contents of a div) we sometimes (race condition in the PhantomJS code base?) run into the situation, that PhantomJS (yeah, never happens with ChromeDriver or InternetExplorerDriver) thinks the AJAX result is the complete new page.
We can observe this behavior by taking a browser screenshot with PhantomJS and we can see only the AJAX result, nothing else. This is true even after waiting for 5s and taking another screenshot. Subsequent test stepts fail with NoElementFoundExceptions (as we search for elements outside of the AJAX result...).
This is reproducible in around 50% of the runs, the other 50% do not have the problem and the browser screenshot shows the whole page.
Any ideas?
We're using PhantomJS 2.0.0 on .NET 4.6.1, Win 8.1 via Selenium WebDriver.
The text was updated successfully, but these errors were encountered: