Selenium RC - Compilation Error - TechRepublic
General discussion
January 9, 2009 at 03:10 AM
kamakshi

Selenium RC – Compilation Error

by kamakshi . Updated 17 years, 6 months ago

I have recorded the tests using selenium IDE and tried to execute the test with selenium RC and i got the following error message.

[Kamakshi@localhost selenium-server-0.9.2]$ java -jar selenium-server.jar
16:04:50.246 INFO – Java: Sun Microsystems Inc. 1.5.0_06-b05
16:04:50.259 INFO – OS: Linux 2.6.18-1.2798.fc6 i386
16:04:50

The java file i executed is

package com.example.tests;

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

public class myseleniumtest extends SeleneseTestCase {

public void setUp() throws Exception {
setUp(“http://change-this-to-the-site-you-are-testing/”, “*chrome”);
}
public void testNew() throws Exception {
selenium.open(“/”);
selenium.type(“q”, “birds”);
selenium.click(“btnG”);
selenium.waitForPageToLoad(“30000”);
}
}

Can u please provide me the solution to overcome those compilation error

This discussion is locked

All Comments