且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

try / catch语句不是从Selenium2 FindElement处理异常

更新时间:2023-11-16 15:30:28

这可能是一个长镜头,但我唯一的想法是,也许有两个 NoSuchElementException异常$之间的名称冲突C $ C>类和你正在处理您的命名空间中一个可访问的,而code抛出其他。

This may be a long shot, but the only idea that I have is that maybe there's a name conflict between two NoSuchElementException classes and you're handling the one accessible from your namespace while the code is throwing the other.