File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Selenium test with ajax calll Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Selenium test with ajax calll

chandrap prakash
Greenhorn

Joined: Sep 19, 2008
Posts: 28
Hi,
i am using fitnesse fraimwork and selenium RC for web UI testing.

In some pages of my application some text/images are loding through the ajax call. So in my wiki pages i am testing these messages which are loding through the ajax.

here selenium doesn't give a call to ajax.so my selenium test is fail.
I am using the following wiki page code:

|setCondition|selenium.browserbot.getCurrentWindow().document.getElementById('bodyMain_thumbnails')|Timeout|20|
|Page contains Label|Uploaded|

actually 'bodyMain_thumbnails' div is loading through ajax at run time with "Uploaded" message.

and my fixture code is like:
public void setWaitTimeout(String milliSec)
{
String locator="//div[@id='bodyMain_title']";
instance.waitForPageToLoad(milliSec+"000");
}

So,please could anybody look into this, and give your valuabe response to me.
while testing if i look into selenium RC browser insted of ajax call being executed it's loading the "login page". in our application if a page fails to load or timeout it is redirect to login page.here it is evdient that either the ajax call is not executed.

it's very urgent.

Regards

Chandra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selenium test with ajax calll
 
Similar Threads
Selenium/Fitnesse and JSP
How does upload multiple files work
Selenium RC test with ajax
Junit4+Eclipse+Selenium RC- Test class should have exactly one public zero-argument constructor
Javascript issue when loading the JSP page content via an AJAX call