I am running some unit tests on my code, and for this I had to download the selenium server. Now, one of the examples selenium includes is called GoogleTest. I had this copied to my C:\ folder, and tried to run it. 

At first, i had an error trying to open firefox. Seems that selenium hasn't been updated for quite some time, since it supports up till Firefox version 3.5. Found [this](http://geekswithblogs.net/thomasweller/archive/2010/02/14/making-selenium-1.0.1-work-with-firefox-3.6.aspx) helpful blog that helped me (changing 3.5.\* for 7.0.\*).

Now, I have a new problem. It seems selenium hasn't updated its docs either, and the GoogleTest hangs when executed ([this](https://stackoverflow.com/questions/3652235/selenium-rc-waitforpagetoload-hangs) post explains why). When using AJAX type operations, the operation waitForPageToLoad hangs. 

Now, I need an equivalent to this operation but when dealing with AJAX operations.. anybody knows of an alternative? Thanks
['https://Stackoverflow.com/questions/7923033', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/775205/']
Did you tried with [QAF formerly ISFW](https://qmetry.github.io/qaf/)? It internally waits for element as well as provides wait functionality for ajax to complete for may of the js toolkit like dojo, extjs, prototype etc

for example if the AUT uses extjs then you can use like

```
waitService.waitForAjaxToComplete(JsToolkit.EXTJS);

```
There is no waitforajaxtoreturn function in Selenium. The way AJAX changes are handled are by using the `WebDriverWait` class to wait for a specific condition to become true when the AJAX call returns.

So for example, for the Google test, the `WebDriverWait` could wait for the search container to appear.

In essence, you have to know what you are waiting for in order to continue the test.