Share
Go down
vinayak
Posts : 1
Join date : 2011-02-07

Prob in executing Selecium RC Script in Eclipse

on Mon Feb 07, 2011 5:24 pm
hi,

I am a beginner in Selenium RC, i started to record some script from IDE and exported to JUnit3. That Java script is copied
to eclipse by adding drivers, package, changing class name etc. Below is the piece of code using in eclipse


package script;

import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;

public class sbi extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://www.google.co.in/", "*chrome");
}
public void testsbi() throws Exception {
selenium.open("/");
selenium.type("q", "sbi");
selenium.click("btnG");
selenium.waitForPageToLoad("85000");
selenium.click("link=Welcome to OnlineSBI");
selenium.waitForPageToLoad("40000");
selenium.click("link=Corporate Banking");
selenium.waitForPageToLoad("80000");
selenium.click("link=SBI Express Remit");
}
}

Selenium RC Server is Started from the command prompt and run the script from the eclipse. Sometimes Code works
fine with firefox means browser does exactly whateven it has been recorded and in many time the same code works
for a while(exectes 2 or 3 steps upto "selenium.click("btnG");") and closes the browser with log.

If anyone knows, please share your knowledge here.

Thanks in Advance.
Vinayak
auto_ashish1
Active particpant
Active particpant
Posts : 21
Join date : 2011-03-10

Re: Prob in executing Selecium RC Script in Eclipse

on Wed Apr 06, 2011 2:48 pm
Can you please paste your browser logs?

Regards

Ashish
itsthakur@gmail.com
91-9888179981


For online Selenium training go to my website- www.sejsoft.com
Back to top
Permissions in this forum:
You cannot reply to topics in this forum