Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザー名とパスワードの保存に問題があります。登録後、ユーザーは登録ページでユーザー名とパスワードを取得します。このユーザー名とパスワードを変数として保存し、後で使用したいと思います。これは、Selenium IDEのストアテキストとjavascriptで正常に機能しますが、Javaを使用するWebDriverでは機能しません。何か案が?
それはあなたが意味することですか?
import static org.junit.Assert.*; import org.junit.Test; public class AbcTest { static String aString = ""; @Test public void test1() { aString = "abc"; } @Test public void test2() { assertTrue(aString.equals("abc")); } }