Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

Prob in executing Selecium RC Script in Eclipse Empty 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
avatar
auto_ashish1
Active particpant
Active particpant
Posts : 21
Join date : 2011-03-10

Prob in executing Selecium RC Script in Eclipse Empty 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
Back to top
Permissions in this forum:
You cannot reply to topics in this forum