No video

P7 - Different Locators in Selenium WebDriver | Selenium | Java |

  Рет қаралды 17,164

H Y R Tutorials - Telugu

H Y R Tutorials - Telugu

2 жыл бұрын

In this video, I have explained about "Different Locators available in Selenium WebDriver".
Selenium WebDriver is an open-source tool for automated testing of web apps across many browsers.
One of the most fundamental techniques to learn when using WebDriver is how to find elements on the page. WebDriver offers a number of built-in selector types(locators) to achieve the same.
⭐ Element Selection Strategies or Locators ⭐
There are eight different built-in element location strategies or locators available in WebDriver:
id -- Locates elements whose ID attribute matches the search value
name -- Locates elements whose NAME attribute matches the search value
class name -- Locates elements whose class name contains the search value
tag name -- Locates elements whose tag name matches the search value
CSS selector -- Locates elements matching a CSS selector
XPath -- Locates elements matching an XPath expression
link text -- Locates anchor elements whose visible text matches the search value
partial link text -- Locates anchor elements whose visible text contains the search value. If multiple elements are matching, only the first one will be selected.
In general, if HTML IDs are available, unique, and consistently predictable, they are the preferred method for locating an element on a page. They tend to work very quickly and forego much processing that comes with complicated DOM traversals.
If unique IDs are unavailable, a well-written CSS selector is a preferred method of locating an element. XPath works as well as CSS selectors, but the syntax is complicated and frequently difficult to debug. Though XPath selectors are very flexible, they are typically not performance tested by browser vendors and tend to be quite slow.
Selection strategies based on linkText and partialLinkText have drawbacks in that they only work on link elements. Additionally, they call down to XPath selectors internally in WebDriver.
Tag name can be a dangerous way to locate elements. There are frequently multiple elements of the same tag present on the page. This is mostly useful when calling the findElements(By) method which returns a collection of elements.
The recommendation is to keep your locators as compact and readable as possible. Asking WebDriver to traverse the DOM structure is an expensive operation and the more you can narrow the scope of your search, the better.
-- Example: --
WebElement cheese = driver.findElement(By.id("cheese"));
As seen in the example, locating elements in WebDriver is done on the WebDriver instance object. The findElement(By) method returns another fundamental object type, the WebElement.
WebDriver -- represents the browser
WebElement -- represents a particular DOM node (a control, e.g. a link or input field, etc.)
You can find the program used in this video at the below location: 👇
bit.ly/32ReI3h
▶ Next Video link: • P8 - How to handle Tex...
◀ Previous Video Link: • P6 - Auto Download Dri...
↔ Selenium Java in Telugu Playlist link: bit.ly/3tL7Z9S
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
==============================================
==============================================
Connect us @
🔗 Website - www.hyrtutorials.com
🔗 Telegram - t.me/hyrtutorials
🔗 Facebook - / hyrtutorials
🔗 LinkedIn - / hyrtutorials
🔗 Twitter - / hyrtutorials
🔗 Instagram - / hyrtutorials
==============================================
==============================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
#hyrtutorialstelugu #selenium #telugu #java

Пікірлер: 71
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
↔ Selenium Java in Telugu Playlist link: bit.ly/3tL7Z9S ✴ Checkout my other playlists: bit.ly/3gLIAVL ☕ Buy me a coffee: bit.ly/33ljBWc
@bharathpybodi2842
@bharathpybodi2842 Ай бұрын
excellent class sir
@HYRTutorialsTelugu
@HYRTutorialsTelugu Ай бұрын
Thanks buddy 🙂
@chittimallakotesh7911
@chittimallakotesh7911 11 ай бұрын
supper anna nice video
@HYRTutorialsTelugu
@HYRTutorialsTelugu 11 ай бұрын
Thanks buddy 😊
@naveenv3031
@naveenv3031 Жыл бұрын
Thanks anna i learnt java through u r channel
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Super buddy
@munindharr1039
@munindharr1039 Жыл бұрын
Eagerly waiting for your videos for BDD & CUCUMBER in Telugu
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
I dont want to set any unrealistic expectations to you buddy. Nenu single person ni office work cheskuntu, videos chesthu, emails ki comments ki insta lo messages ki reply isthu unnanu buddy. nenu oka course ayyaka inko course ni start chestha buddy. edi start chesina 100% efforts pettali anedi he na thought. so vere a course start cheyyali annakaani first java ipovali and daani tarvtha emanna aalochisthanu. BDD and cucumber meeda ippatlo no plan buddy.
@AnilKumar-pn2eb
@AnilKumar-pn2eb Жыл бұрын
I watched more KZfaq videos but i couldn't understand but one's i watched your videos i am easily understanding thanks you so much sir
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 😊
@vijaymadur7288
@vijaymadur7288 Жыл бұрын
excellant explanations, kudos to Giri
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 😊
@knjaswanthi9683
@knjaswanthi9683 Жыл бұрын
Excellent anna 👌
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 🙂
@mahendrabadugu7623
@mahendrabadugu7623 2 жыл бұрын
Tq very much sir.....
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
Glad you liked buddy
@maddiliramesh1376
@maddiliramesh1376 7 ай бұрын
Hi reddy bro.. nice Explaination in Telugu. it is very usefull to me. thank you bro
@HYRTutorialsTelugu
@HYRTutorialsTelugu Ай бұрын
Thanks buddy 🙂
@aravind9842
@aravind9842 Жыл бұрын
good sir keep going👏👏👏👏👏👏
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 😊
@vepurikartheek7278
@vepurikartheek7278 Жыл бұрын
Yadagiri anna, the way you teach is Super goof. Crystal clear Explaination. Any plans to teach SQL anna. If possible make classes on SQL
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks Buddy 🙂
@ch.Rambabu-goud
@ch.Rambabu-goud Жыл бұрын
nice explanation
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks Buddy 🙂
@bodasinghisuresh3093
@bodasinghisuresh3093 Жыл бұрын
Super sir
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 😊
@naga850
@naga850 Жыл бұрын
Thank you Soo much 🫂
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Happy learning buddy
@SoftJavaPython
@SoftJavaPython 9 ай бұрын
Brother chala triptika feel auchosindi ni video choosee tarbata. Induku kuta tutorial upload chaiaru. Nitoo kalpi oka financial/banking project chse tarbata chala confidence ooche huntaru anukunaanu. Dagarlo chesai brother. (I am trying to comment in Telugu, I am from Nepal)
@HYRTutorialsTelugu
@HYRTutorialsTelugu 9 ай бұрын
Appriate your efforts buddy. but could you please pos your comment in english only.
@pavithram7194
@pavithram7194 Жыл бұрын
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 😊
@nikhithakrishnam5388
@nikhithakrishnam5388 Жыл бұрын
Hi bro meeru cucumber protracter in vscode meeda videos cheyandi pls using pagescript
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
No plan buddy 😔
@user-ml1xq3tg4p
@user-ml1xq3tg4p Жыл бұрын
Hi, Do you have any plans for doing API testing?
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Yes buddy but not very soon
@bhanuprasad.m5879
@bhanuprasad.m5879 Жыл бұрын
bro totally super but the web elements are not highlighted, i wrote the same code whatever you write can you please explain that
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
May be the locators are changed now buddy from the time I made the video
@victorpremanand9815
@victorpremanand9815 Жыл бұрын
Explanation wise is very good, but atlast totally getting confused..
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Thanks buddy 🙂 If you haven't finished the java course, then stop the selenium and learn the java first buddy. After java you should watch the selenium.
@pavanisannamuri2406
@pavanisannamuri2406 2 жыл бұрын
Maven project lo web driver manager dagara error vastundi sir Plz provide video sir
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
Watch this video buddy kzfaq.info/get/bejne/pa-YhbGdmteXf30.html
@fanmadeguru8629
@fanmadeguru8629 Жыл бұрын
hi bro if you dont mind a small request ,, core java and selenium medha interview quations and answers pdf notes provide chestara bro plss
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Em prepare cheyyaledu buddy
@nikhithakrishnam5388
@nikhithakrishnam5388 Жыл бұрын
Hi bro nuvu ee video lo GitHub logo ki element inspect chesinapidu div class ni enduku expand chesi andulo [ a] tag ni enduku lo una class ni use chesaru div lo vuna class use cheyachu kada
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Mana target element a kaabatti ala raasanu buddy
@trinadhmanda5593
@trinadhmanda5593 Жыл бұрын
dear sir! in which feild/domain you are worked presntly
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
Testing field buddy
@trinadhmanda5593
@trinadhmanda5593 Жыл бұрын
@@HYRTutorialsTelugu ❣️
@SoftJavaPython
@SoftJavaPython 9 ай бұрын
Brother could you provide xPaht and cssSelector tutorial links.
@HYRTutorialsTelugu
@HYRTutorialsTelugu 9 ай бұрын
github.com/YadaGiriReddy/HYR-Tutorials
@munindharr1039
@munindharr1039 Жыл бұрын
Still any content is pending to add this list pls let us know pls refer
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
No buddy. This playlist is done
@premsaibarla4780
@premsaibarla4780 2 жыл бұрын
Developer tool ela open cheyali sir
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
Press F12 or right click on any element and click on inspect
@varunkumarthoutam2926
@varunkumarthoutam2926 8 ай бұрын
Hi anna. Meru cheypena process follow cheysanu selenium installation cheysanu. But eclipse work kavatledhu.import kavtledhu .Please new updated version tho ela setup cheyali video cheyandi please. 3 days nunchi chala videos chusi try cheysanu but work kavtledhu .please request cheysthunaa.Course practice cheyalakapothunaa brother
@HYRTutorialsTelugu
@HYRTutorialsTelugu 27 күн бұрын
just delete the existing one and download it again to save the time buddy
@Archanaparupally
@Archanaparupally 2 жыл бұрын
Entha baga explain chesaru,88members chusaru 4likes andulo oKati nadhi😡 very bad
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
Haha yeah that is something everyone should do.
@brickmaniagame
@brickmaniagame Жыл бұрын
Last line comment lo add chey anna
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
You can just pause the video and write it buddy. Nenu comment lo mention cheyyakapodanili reason enti ante meeru daanni type chesi chesthe gurthuntundi bit copy paste chesthe gurthu undadu
@Archanaparupally
@Archanaparupally 2 жыл бұрын
Git hub ante enti alanti information kosam link providecheyandi sir inka em em s/w use chesaru avi kuda mention cheyyandi atleast link provide cheyyandi 1st time mi video chuse valla ki ardham kadhu
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
Yeah, will create some course on the github.
@mallikarjunreddy3730
@mallikarjunreddy3730 2 жыл бұрын
S
@HYRTutorialsTelugu
@HYRTutorialsTelugu 2 жыл бұрын
S means?
@mallikarjunreddy3730
@mallikarjunreddy3730 2 жыл бұрын
S- We are going to share, subscribe and like it bro. Your videos are truly Amazing. Thank you so much ❤️❤️❤️❤️
@DurgaAllinOne509
@DurgaAllinOne509 Жыл бұрын
hi sir how to contact you.. i need help from you regarding selenium and java
@HYRTutorialsTelugu
@HYRTutorialsTelugu Жыл бұрын
hyadagirireddytutorials@gmail.com
P8 - How to handle Textboxes in Selenium WebDriver | Selenium | Java |
9:59
H Y R Tutorials - Telugu
Рет қаралды 11 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 37 МЛН
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 4,5 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
P18 - Explicit Wait in Selenium WebDriver | Selenium | Java |
44:52
H Y R Tutorials - Telugu
Рет қаралды 6 М.
P10 - How to handle Dropdowns in Selenium WebDriver | Selenium | Java |
26:20
H Y R Tutorials - Telugu
Рет қаралды 10 М.
P17 - Implicit Wait Timeout in Selenium WebDriver | తెలుగు |
20:48
What is Agile?
15:22
Telusko
Рет қаралды 984 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 37 МЛН