📜  在 selenium 中查找元素与查找元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:53.986000             🧑  作者: Mango

代码示例2
Differences between findElement and findElementS method?
    --> findElement():
     
      -It does returns SINGLE web element.
      - Return type: WebElement
      - If it cannot find a web element, it throw - NoSuchElementException
          
   
   --> findElements():
      - Returns a List of WebElements
      - Return type: List