因此,我的应用程序具有JavaScript警报...我如何使用黄瓜和/或水豚,测试警报是否包含特定字符串?
Try Cucumber + Webrat + Selenium. You can then write statements like
selenium.is_alert_present.should be_true
selenium.get_alert.should eql("File Deleted")
:-)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.