@@ -0,0 +1,2447 @@
+package com.opera.core.systems;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class OperaActionTest extends TestBase %7B%0A%0A  @Test(expected=org.openqa.selenium.WebDriverException.class)%0A  public void testDoesntExist() throws Exception %7B%0A    driver.operaAction(%22this action does exist%22);%0A  %7D%0A%0A  // FIXME does not fail%0A  @Test%0A  public void testMissingParam() throws Exception %7B%0A    driver.operaAction(%22Set preference%22);%0A  %7D%0A%0A  // FIXME does not fail%0A  @Test%0A  public void testExtraParam() throws Exception %7B%0A    driver.operaAction(%22Go to end%22, %22an%22, %22extra%22, %22param%22);%0A  %7D%0A%0A  /*%0A   * The tests below test the commonly used Opera actions%0A   */%0A%0A  @Test%0A  public void testGo() throws Exception %7B%0A    driver.operaAction(%22Go%22, fixture(%22test.html%22));%0A    Assert.assertEquals(fixture(%22test.html%22), driver.getCurrentUrl());%0A  %7D%0A%0A  @Test%0A  public void testCase() throws Exception %7B%0A    driver.operaAction(%22GO%22, fixture(%22keys.html%22));%0A    Assert.assertEquals(fixture(%22keys.html%22), driver.getCurrentUrl());%0A%0A    driver.operaAction(%22go%22, fixture(%22javascript.html%22));%0A    Assert.assertEquals(fixture(%22javascript.html%22), driver.getCurrentUrl());%0A  %7D%0A%0A  @Test%0A  public void testNavigateUp() throws Exception %7B%0A    getFixture(%22two_input_fields.html%22);%0A    driver.findElementByName(%22two%22).click();%0A%0A    driver.operaAction(%22Navigate up%22);%0A    driver.key(%22enter%22);%0A%0A    driver.type(%22hello%22);%0A%0A    Assert.assertEquals(%22hello%22, driver.findElementByName(%22one%22).getValue());%0A  %7D%0A%0A  @Test%0A  public void testNavigateDown() throws Exception %7B%0A    getFixture(%22two_input_fields.html%22);%0A    driver.findElementByName(%22one%22).click();%0A%0A    driver.operaAction(%22Navigate down%22);%0A    driver.key(%22enter%22);%0A%0A    driver.type(%22hello%22);%0A%0A    Assert.assertEquals(%22hello%22, driver.findElementByName(%22two%22).getValue());%0A  %7D%0A%0A  @Test%0A  public void testNavigateRight() throws Exception %7B%0A    getFixture(%22test.html%22);%0A    driver.findElementById(%22radio_little%22).click();%0A%0A    driver.operaAction(%22Navigate right%22);%0A    driver.key(%22enter%22);%0A%0A    Assert.assertEquals(true,%0A        ((OperaWebElement) driver.findElementById(%22radio_some%22)).isSelected()%0A    );%0A  %7D%0A%0A  @Test%0A  public void testNavigateLeft() throws Exception %7B%0A    getFixture(%22test.html%22);%0A    driver.findElementById(%22radio_little%22).click();%0A%0A    driver.operaAction(%22Navigate left%22);%0A    driver.key(%22enter%22);%0A%0A    driver.type(%22hello%22);%0A%0A    Assert.assertEquals(%22hello%22, driver.findElementById(%22input_email%22).getValue());%0A  %7D%0A%0A%7D%0A

Add tests for operaAction