英文:
findElement and findElements abstract methods could have been directly declared in WebDriver interface?
问题
SearchContext接口在Selenium中的作用是什么?它有两个抽象方法:findElement和findElements。为什么需要在WebDriver接口中进行扩展?findElement和findElements方法本可以直接在WebDriver接口中声明吗?
英文:
What is the need of SearchContext interface in the Selenium? It has two abstract methods findElement and findElements. What is the need of extending in WebDriver interface? findElement and findElements methods could have directly declared in WebDriver interface?
专注分享java语言的经验与见解,让所有开发者获益!
评论