2
私はHTMLの助けを借りてフォーラムPhpBBをテストしています。私はPhpBBフォーラムのトピックの1つにメッセージを追加したいと思います。テキストエリアにメッセージを入力して[送信]ボタンをクリックしますが、新しいページにはメッセージがありません。問題であると想定されるのは?PhpBBフォーラムのテスト
final ArrayList<HtmlForm> formList=(ArrayList<HtmlForm>) page.getByXPath("//form[@id='postform']");
final HtmlTextArea myMessage=formList.get(0).getTextAreaByName("message");
myMessage.type("text");
final HtmlSubmitInput submit_post = formList.get(0).getInputByName("post");
page=submit_post.click();
if (page.asText().contains("text")) {
System.out.println("right");
}
ありがとうございます!