現在、JAVA を使用してセレンの記録を再生するために、次の JAR ファイルを含めました。
- junit-4.10.jar
- セレン-java-2.24.1.jar
- セレン-サーバー-スタンドアロン-2.24.1.jar
また、これらのパッケージをインポートしました
import com.thoughtworks.selenium.Selenium;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.openqa.selenium.support.ui.Select;
しかし、これらだけでは、getAlert() や getConfirmation() などのセレン クラス関数にアクセスできません。
見逃したライブラリ ファイルまたは JAR ファイルはありますか?