请找到我的示例警报代码:
alert('passed properties:\n' + passString + ' \n\n Failed Properties:\n' + failString );
我的硒代码:
Alert alert = null;
alert = driver.switchTo.alert();
Assert.assertEquals("passed properties:\n<passString> \n\n Failed Properties:\n <failString>",alert.getText());