- vinayak
- Posts : 1
Join date : 2011-02-07
Prob in executing Selecium RC Script in Eclipse
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
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_ashish1Active particpant
- Posts : 21
Join date : 2011-03-10
Re: Prob in executing Selecium RC Script in Eclipse
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
Regards
Ashish
itsthakur@gmail.com
91-9888179981
For online Selenium training go to my website- www.sejsoft.com
- Getting the error msg 'Error: Could not find or load main class java-jar' while executing the selenium code in eclipse
- Script error under mozilla when executing test cases remotely
- Unable to start script execution in IE browser it is showing IE Script Error with 'Yes' or 'No' buttons for Continue script execution or no.
- Getting error when i run selenium script in Eclipse, please help
- Errors Executing Selenium RC in NUnit [ C#]
Permissions in this forum:
You cannot reply to topics in this forum
|
|