Hi Friends,
I am using win-xp, I have down loded that Selenium IDE, RC.
I recorded script using selenium IDE, and then I want ot parameterized that In Selenium RCwith help of Junit.
Before that I took that script default generated in the [
http://selenium-rc.openqa.org/tutorial.html] Scrpit
{font:style=color: #000000;}import com.thoughtworks.selenium.*;{font}
{font:style=color: #000000;}import junit.framework.*;{font}
{font:style=color: #000000;}public class GoogleTest extends TestCase {{font}
{font:style=color: #000000;} private Selenium browser;{font}
{font:style=color: #000000;} public void setUp() {{font}
{font:style=color: #000000;} browser = new DefaultSelenium("localhost",{font}
{font:style=color: #000000;} 4444, "*firefox", "[
http://www.google.com|
http://www.google.com/]");{font}
{font:style=color: #000000;} browser.start();{font}
{font:style=color: #000000;} }{font}
{font:style=color: #000000;} {font}
{font:style=color: #000000;} public void testGoogle() {{font}
{font:style=color: #000000;} browser.open("[
http://www.google.com/webhp?hl=en]");{font}
{font:style=color: #000000;} browser.type("q", "hello world");{font}
{font:style=color: #000000;} browser.click("btnG");{font}
{font:style=color: #000000;} browser.waitForPageToLoad("5000");{font}
{font:style=color: #000000;} assertEquals("hello world - Google Search", browser.getTitle());{font}
{font:style=color: #000000;} }{font}
{font:style=color: #000000;} {font}
{font:style=color: #000000;} public void tearDown() {{font}
{font:style=color: #000000;} browser.stop();{font}
{font:style=color: #000000;} }{font}
{font:style=color: #000000;}}{font}
and store as *GoogleTest.java* then I want to execute this file.
but in the Command prompt it show that below error
+{font:style=font-family: comic sans ms,sans-serif;}C:\Program Files\Java\Junitfiles>javac GoogleTest.java{font}+
+{font:style=font-family: comic sans ms,sans-serif;}GoogleTest.java:1: package com.thoughtworks.selenium does not exist{font}+
+{font:style=font-family: comic sans ms,sans-serif;}import com.thoughtworks.selenium.*;{font}+
+{font:style=font-family: comic sans ms,sans-serif;}^{font}+
+{font:style=font-family: comic sans ms,sans-serif;}GoogleTest.java:4: cannot find symbol{font}+
+{font:style=font-family: comic sans ms,sans-serif;}symbol : class Selenium{font}+
+{font:style=font-family: comic sans ms,sans-serif;}location: class GoogleTest{font}+
+{font:style=font-family: comic sans ms,sans-serif;} private Selenium browser;{font}+
+{font:style=font-family: comic sans ms,sans-serif;} ^{font}+
+{font:style=font-family: comic sans ms,sans-serif;}GoogleTest.java:6: cannot find symbol{font}+
+{font:style=font-family: comic sans ms,sans-serif;}symbol : class DefaultSelenium{font}+
+{font:style=font-family: comic sans ms,sans-serif;}location: class GoogleTest{font}+
+{font:style=font-family: comic sans ms,sans-serif;} browser = new DefaultSelenium("localhost",{font}+
+{font:style=font-family: comic sans ms,sans-serif;} ^{font}+
+{font:style=font-family: comic sans ms,sans-serif;}3 errors{font}+
after that i copied the C:\Program Files\Java\selenium-java-client-driver-1.0-beta-1\selenium-java-client-driver.jar in the "jre\lib" but still it through same error
Please help me in this issue.
thanks
Buntty