`findElement`和`findElements`抽象方法本可以直接在WebDriver接口中声明吗?

huangapple 未分类评论46阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2020年7月26日 00:19:32
  • 转载请务必保留本文链接:https://java.coder-hub.com/63090674.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定