OperaDriver causes NullPointerException

29 views
Skip to first unread message

Le Frog

unread,
Sep 5, 2012, 4:13:32 AM9/5/12
to seleniu...@googlegroups.com
Hey guys...

I wanted to run my tests also in Opera. So I had installed the newest version of it and had tried it out, but I failed. :(

Here is my short simple code:

    public static WebDriver gettingStarted() throws Exception{
        WebDriver driver = new OperaDriver();
        driver.manage().timeouts().implicitlyWait(180, TimeUnit.SECONDS);
        return driver;
      }

This is used in every test case like this:

    @Before
    public void setUp() throws Exception {
        driver = Starter.gettingStarted();
        actions = new Actions(driver);
    }

Exlipse is reporting me a problem in line driver = Starter.gettingStarted(); and WebDriver driver = new OperaDriver(); .

Does somebody has a clue, what I could do ?

Greetz
Frog

Reply all
Reply to author
Forward
0 new messages