ACHIEVERS COMPUTER INSTITUTE, ICHALKARANJI...
🔹findElement(By locator) :-
Returns a single WebElement that matches the locator.
If multiple elements match, it returns only the first one.
If no element is found, it throws NoSuchElementException..
🔹 findElements(By locator) :-
Returns a List
If no element is found, it returns an empty list (not an error)..
No comments:
Post a Comment