Difference Between FindElement and FindElements in Selenium | Find Element in Selenium| Day 24

Опубликовано: 01 Январь 1970
на канале: The Testing Academy
6,766
52

✅ Join us - https://sendfox.com/thetestingacademy

In this video, We are going to Difference Between FindElement and FindElements in Selenium.

Selenium defines two methods for identifying web elements:
findElement: A command used to uniquely identify a web element within the web page.
findElements: A command used to identify a list of web elements within the web page.

✅ Download Code - https://scrolltest.com/automation/day24

✅FindElement ()
Find a Single element
If Element is not found - NoSuchElement exception.
Return only single WebElement
driver.get(“https://katalon-demo-cura.herokuapp.c...
WebElement demos=driver.findElement(by.id(“btn-make-appointment”));

✅ FindElements()
Find multiple elements with xpath/css
Return List of WebElements
Returns an empty list if no matching element is found
driver.get(“https://katalon-demo-cura.herokuapp.c...
List WebElement ptags=driver.findElements(By.tagName(“p”));

https://www.browserstack.com/guide/fi...
-----------------------------------------------------
👪 Join our Community - http://bit.ly/learntesting2019
✅ Automation Tester Community - https://thetestingacademy.com
🐦Follow us on Twitter -   / itstechmode  
📖 Like us on Facebook -   / scrolltest  
🎤 Listen to our Podcast - https://anchor.fm/thetestingacademy
------------------------------------------------------

#automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest


🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka

✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1

✅Programming Java -
https://bit.ly/learnjava2020-p1

✅Test Automation -
https://bit.ly/learnautomation2020

✅API Testing -
https://www.learnapitesting.com

✅Cypress Tutorial with LIVE Projects -
https://cypresstutorial.com