我已经创建了一个Spring Boot应用程序,当我点击localhost:8080/displayResults时,它会在浏览器上显示下表║ ID ║ Name ║ Action ║║ 001 ║ one ║ start|stop|restart ║╚═════╩══════╩════════════════════╝@
因此,为了检查脚本是否捕捉到警报,我输出了p browser.alert.present?,结果显示为false。如何处理这样的问题?if (certain_button_click) browser.alert.present?} rescue nil
p browser.alert.present?#I get