ページに移動すると、アラート JavaScript によってメッセージ ボックスが表示されます。しかし、エラーはないようです (ページのリストを取得するために必要な xml ファイルの内部テキストを変更したため、エラーが発生するはずです)。
aspx ページの内容は次のとおりです。
If list = Null
alert("Sorry there's nothing to retrieve.")
テストの場合:
Dim docu As New XmlDocument
Dim path As String = "C:\Hallbjorn.xml"
docu.Load(path)
docu.SelectSingleNode("/Aria/Icelandic").InnerText = "Suburban"
docu.Save(path)
webCLient.getPage("https:/Storyline.com/Character1.htm")
collectedAlerts = New java.util.ArrayList()
webCLient.setAlertHandler(New CollectingAlertHandler(collectedAlerts))
Dim newPage = oldPage.getElementById("background").click
Assert.AreEqual("Sorry there's nothing to retrieve.", Convert.ToString(collectedAlerts))
エラー メッセージは、アラート内のものである必要があります。