Selenium: fail to run my HelloWorld class

Posted on 2011-05-09
Medium Priority
Last Modified: 2013-11-24

I am new to Selenium, i try to run my HelloWorld.class, but i got the following error, why?
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;

public class HelloWorld extends SeleneseTestCase
      public void setUp() throws Exception
            setUp("http://www.google.com/", "*chrome");

      public void testHelloworldtest() throws Exception {
            selenium.type("sf", "tommy");
            selenium.click("link=TOMMY HILFIGER Online Store - USA");

      public static void main(String args[]) throws Exception {
Question by:hongclub
1 Comment
LVL 92

Accepted Solution

objects earned 2000 total points
ID: 35725822

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question