Frage im Vorstellungsgespräch bei InvenTech

Difference between find element and find element methods

Antwort im Vorstellungsgespräch

Anonym

18. Jan. 2024

FindElement() used to access any single element on the web page, Return type is WebElement, If the element is not found throws " NoSuchElementException". FindElements() command used to uniquely identify the list of webElements within the web page, return type is list, if no matching element is found return an "Empty list".