Locators in Selenium | Selenium தமிழ் | Selenium Tamil Tutorial

  Рет қаралды 35,821

LetCode with Koushik

LetCode with Koushik

Күн бұрын

Locators in Selenium - To interact with any elements in the web page, we have to use selenium locators to find the element. In this video, we'll understand the basics of Selenium locators.
Source code:
bit.ly/3lVOWTw
Download my XPath extension
bit.ly/2T5EUCu
Timeline:
0:00 Locators in Selenium
0:50 Types of locators
3:30 First Script
5:00 launch browser
6:20 get - load URL
7:00 Find elements
20:00 Recap
22:00 Subs will help me :)
🤗 Learning from this video,
1. Selenium locators strategy
2. How to find the duplicate elements
3. Locators like id, name, className, linkText, partialLinkText, XPath & CSS.
Join our Gitter community
bit.ly/3mWDqrC
Join our Facebook group
bit.ly/3mVvMxW
Behind the screen,
/ ortoni
Subscribe to LetCode
bit.ly/305DiMT
My playlist:
1. Protractor
bit.ly/3i2G3Vf
2. Selenium (Tamil)
bit.ly/3kMnyX1
and check more playlists and videos from the channel page.

Пікірлер: 121
@MaheshKumar-wr2gm
@MaheshKumar-wr2gm 3 жыл бұрын
Pls share your xpatm tutorial link
@letcode
@letcode 3 жыл бұрын
kzbin.info/www/bejne/pqHRdZmEqridqNE Here is the video
@deivab1
@deivab1 3 жыл бұрын
Very Nice Tutorial and all episodes are crisp enough to learn exact concepts. I have a question in element finding - button. I used //button[text()='LOGIN'], it is not identifying, but when using //button[.='LOGIN'] is working. can you please tell me why?
@geethajeyaraj9710
@geethajeyaraj9710 21 күн бұрын
529th like is from me. Good one. I was able to do it based on your video. Thank you. Please do share videos to identify locators for different web elements/ controls
@letcode
@letcode 20 күн бұрын
Thanks, keep watching everything is covered in the playlist.
@nirmalag2905
@nirmalag2905 9 ай бұрын
clear and nice class, thank you
@letcode
@letcode 9 ай бұрын
Welcome 😊
@FACTSLEADER9294
@FACTSLEADER9294 2 жыл бұрын
Neenga company la use panara methods shortcuts java selenium base pani oru full video podunga
@letcode
@letcode 2 жыл бұрын
Ok bro
@vino_noti
@vino_noti Жыл бұрын
thankyou bro ec ah slow ah solirukinga spr broo
@letcode
@letcode Жыл бұрын
Nandri bro ☺️
@deepikamathayan1425
@deepikamathayan1425 2 жыл бұрын
Seriously very gud tutorial .it helps for the beginners as well concept explanation is clear and depth.Thanks a loot.Keep making many tutorials.
@letcode
@letcode 2 жыл бұрын
Thank you ☺️
@ramyabalamurugan6154
@ramyabalamurugan6154 2 жыл бұрын
Your way of teaching is awesome!.Much appreciated for doing the videos in Tamil🤗 I am looking for locating element inside shadow dom.Can you please upload a video for that?
@letcode
@letcode 2 жыл бұрын
kzbin.info/www/bejne/opuccmpppNB5mJo
@Ayyanar55
@Ayyanar55 Жыл бұрын
SUPER BRO 👏
@letcode
@letcode Жыл бұрын
Thanks 🤗
@FACTSLEADER9294
@FACTSLEADER9294 2 жыл бұрын
Bro namma companies la real time projects la actions use panuvama ila robot class use panuvama
@letcode
@letcode 2 жыл бұрын
Actions bro
@FACTSLEADER9294
@FACTSLEADER9294 2 жыл бұрын
Bro java script executor use panuvama companies la
@letcode
@letcode 2 жыл бұрын
Yes definitely
@akashshinde8032
@akashshinde8032 3 жыл бұрын
Hi Koushik , I am using protractor for web-automation for my current project. Thanks for your amazing protractor series , it really helps me. I am stuck in 1 problem , there is one page in my project on which even if I gave correct CSS, XPath or any other locator (In inspect console locator highlights correct button) and try to click on any button in that page , but protractor does not click. Any suggestions how can I perform operations on this type of buttons\pages?
@letcode
@letcode 3 жыл бұрын
Is that within frame ?
@akashshinde8032
@akashshinde8032 3 жыл бұрын
@@letcode No, I have checked frames with '' ,'frame','i frame' words button search result is 0. But there are html line having 'i' as tagname. (for example - ==$0 ::before )
@letcode
@letcode 3 жыл бұрын
Aria hidden true is there, take the parent element and try to click
@akashshinde8032
@akashshinde8032 3 жыл бұрын
@@letcode I have tried with parent element also ,but protractor does not click. And this problem is with one specific page only (works fine for other pages). Error message is - Message: Failed: script timeout (Session info: chrome=86.0.4240.198) (Driver info: chromedriver=86.0.4240.22 (398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/4240@{#378}),platform=Windows NT 10.0.17763 x86_64) From asynchronous test: Error at Suite. (C:\Users\akash.shinde\Documents\ProtractorTypescriptCucumber\SFDC\Spec4.ts:32:5) at Object. (C:\Users\akash.shinde\Documents\ProtractorTypescriptCucumber\SFDC\Spec4.ts:5:1) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14)
@letcode
@letcode 3 жыл бұрын
@@akashshinde8032 I got it, but without seeing DOM, it will be tough to guess what exactly happening.
@bhavyacse8429
@bhavyacse8429 2 жыл бұрын
Thank you so much sir.....
@letcode
@letcode 2 жыл бұрын
Welcome 😊
@bhavyacse8429
@bhavyacse8429 2 жыл бұрын
What is the difference between java selenium and python selenium sir ....
@letcode
@letcode 2 жыл бұрын
Selenium is same, programming language is different.
@bhavyacse8429
@bhavyacse8429 2 жыл бұрын
@@letcode python selenium teach pannunga sir...plzzz sir.....
@keerthanagopal4452
@keerthanagopal4452 2 жыл бұрын
Can you name any chrome addon which is used currently to locate elements ?
@letcode
@letcode 2 жыл бұрын
You can use LetXPath.
@rajarathinam1965
@rajarathinam1965 2 жыл бұрын
Sir 8:13 la log in kuduthen 1 of 2 nu kammikudhu locatorla how to handle
@letcode
@letcode 2 жыл бұрын
By default 1 St one kuda dhan interact pannum.
@ilavarasansriraman4140
@ilavarasansriraman4140 3 жыл бұрын
What is the difference between Dot vs text() in xpath??
@letcode
@letcode 3 жыл бұрын
Good question, will make a video on it
@ilavarasansriraman4140
@ilavarasansriraman4140 3 жыл бұрын
@@letcode Kandipa tutorial venum bro.. Intha concept ku 1 proper video kuda illa
@jayakrishnavaishnav9425
@jayakrishnavaishnav9425 2 жыл бұрын
bro what is the difference between WebDriver driver = new WebDriver(); and ChromeDriver driver =new ChromeDriver();
@letcode
@letcode 2 жыл бұрын
Bro watch this to understand it better kzbin.info/www/bejne/aoSoo2aDbc2tr7s
@mahaalakshumi6737
@mahaalakshumi6737 2 жыл бұрын
Sir indha series ku enna enna browsers laam install pannanum sir
@letcode
@letcode 2 жыл бұрын
Chrome is fine to begin. Later firefox.
@rajarathinam1965
@rajarathinam1965 2 жыл бұрын
Bro nenga find element pota udane kela neraya suggestions ketuchi enaku verum 3 dhan kamikudhu by.linktext error kamikudhu undefined for chrome driver nu varudhu pls clarify
@rajarathinam1965
@rajarathinam1965 2 жыл бұрын
By.link text pota chrome driver undefined nu error varudhu version changepannanuma eclipse la version change pannanuma
@letcode
@letcode 2 жыл бұрын
Driver.FindElement(by. Nu kudu bro, nariya suggestions kaatum
@krishna3202
@krishna3202 9 ай бұрын
@@letcode Bro - The method findElementByLinkText(String) is undefined for the type ChromeDriver driver.findElements is giving only 3 auto suggestions appearing in auto suggestions
@user-mn1qx3ky8o
@user-mn1qx3ky8o Жыл бұрын
bro xpath tha namma inspect ah click panni easy ah copy panniralame ye manual ah type pandringa
@letcode
@letcode Жыл бұрын
Adhu yeppome correct ah varadhu
@user-mn1qx3ky8o
@user-mn1qx3ky8o Жыл бұрын
@@letcode oh ana namma own ah xpath yeludhuna yeppavum correct ah irukuma bro
@letcode
@letcode Жыл бұрын
Correct h iruka mathiri yeludhunam bro 😊
@tech-learner4555
@tech-learner4555 2 жыл бұрын
Sir automation tester aaganumna selenium matu therinja poudhuma sir, enna enna therinju irukanum sir
@letcode
@letcode 2 жыл бұрын
Automation ku namma channel la eruka content podhum bro, Manual testing concept and agile therinum.
@tech-learner4555
@tech-learner4555 2 жыл бұрын
@@letcode okay sir
@letcode
@letcode 2 жыл бұрын
@@tech-learner4555 bro or Koushik, pls no sir 😊
@tech-learner4555
@tech-learner4555 2 жыл бұрын
@@letcode okay bro 😊
@user-lb6qx8pf3d
@user-lb6qx8pf3d 10 ай бұрын
my web browser is closing immediately.. help to solve
@letcode
@letcode 10 ай бұрын
May be the driver issue. kzbin.info/www/bejne/pXq2qId3ntx6gassi=YWbqxtXkDHO2vqVR
@kbharathotk
@kbharathotk 7 ай бұрын
click() method is undefined nu varuthu bro.. Click is not listing
@letcode
@letcode 7 ай бұрын
Find elements or find elements is used ?
@kbharathotk
@kbharathotk 7 ай бұрын
Yes
@mohamedmarzook7530
@mohamedmarzook7530 5 ай бұрын
Bro css pathi video iruka?
@letcode
@letcode 5 ай бұрын
Not yet bro
@mohamedmarzook7530
@mohamedmarzook7530 5 ай бұрын
Adhu romba important ah kandipa therunju irukanuma?
@letcode
@letcode 5 ай бұрын
Good to know, important nu solla mudiyadhu, xpath must.
@mohamedmarzook7530
@mohamedmarzook7530 5 ай бұрын
Yes bro xpath videos elame cover paniten
@NRNov16
@NRNov16 2 жыл бұрын
Hi bro. Can you please help me out? I am not able to add Selenium dependencies on Eclipse (2019-12). Its showing error as : Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'Letcode'. java.lang.NullPointException
@letcode
@letcode 2 жыл бұрын
Is it fixed ?
@NRNov16
@NRNov16 2 жыл бұрын
@@letcode Yes bro. Thanks
@kathiravan2901
@kathiravan2901 11 ай бұрын
Bro....enaku antha .click(); varamatuthu....enna panrathu bro...plz reply
@letcode
@letcode 11 ай бұрын
Find element use pannanum bro , find elements ila
@kathiravan2901
@kathiravan2901 11 ай бұрын
​@@letcodeTQ bro....work aaguthu....unga teaching Vera level...nalla kathupengra confident iruku...ippa tha start paniruken....doubt comment keta reply panunga
@letcode
@letcode 11 ай бұрын
Sure bro
@jawaharselva2481
@jawaharselva2481 2 жыл бұрын
Cut copy actions and robots video??
@letcode
@letcode 2 жыл бұрын
No bro
@prakashanonymous9052
@prakashanonymous9052 2 жыл бұрын
bro i cand find findelement id or link text etc...
@letcode
@letcode 2 жыл бұрын
Y bro
@jeyasurya6726
@jeyasurya6726 2 жыл бұрын
bro it show only find elements locators and find element strings
@letcode
@letcode 2 жыл бұрын
@@jeyasurya6726 you might have created reference for webdriver bro.
@prakashanonymous9052
@prakashanonymous9052 2 жыл бұрын
@@letcode how to create refernce for web driver
@hariprasath1316
@hariprasath1316 Жыл бұрын
Driver.findElement(By.linkText("Log in")).click();
@mohamedmarzook7530
@mohamedmarzook7530 8 ай бұрын
Hi bro, My company website In login page username and password and captcha is here. I got the element for name and password but how can I get the element from captcha? 😢.
@letcode
@letcode 8 ай бұрын
Captcha cannot be automated. In a lower environment like dev or QA or staging developers should disable the captcha.
@mohamedmarzook7530
@mohamedmarzook7530 8 ай бұрын
@@letcode Lower environment mean? I can get you bro please tamil a solunga
@letcode
@letcode 8 ай бұрын
Testing ku oru environment irukum la bro. Production url vera, qa test panra site vera ah irukum.
@mohamedmarzook7530
@mohamedmarzook7530 8 ай бұрын
Ama bro apo nama dev kita local la andha captcha va disable pani dhan pana mudiuma?
@letcode
@letcode 8 ай бұрын
@mohamedmarzook7530 yes bro
@tech-learner4555
@tech-learner4555 2 жыл бұрын
Sir indha website link share pannunga sir, launch url la neenga kudutha link type panna vaera website varudhu sir
@letcode
@letcode 2 жыл бұрын
letcode.in
@mahaalakshumi6737
@mahaalakshumi6737 2 жыл бұрын
@@letcode sir neenga website update pantinga pola sir idhu complete aah different aah iruku sir idhu matu practice pannama vdo matu paathukirava sir
@letcode
@letcode 2 жыл бұрын
@@mahaalakshumi6737 letcode.in/test Inga practice pananum
@mahaalakshumi6737
@mahaalakshumi6737 2 жыл бұрын
@@letcode hi bruuhh 😄😄
@letcode
@letcode 2 жыл бұрын
😊
@vsselv
@vsselv Жыл бұрын
previous video dom link send me bro
@letcode
@letcode Жыл бұрын
kzbin.info/www/bejne/iIPHimVmlKyoeMk
@vsselv
@vsselv Жыл бұрын
@@letcode bro automation testing ah . Java ena topicsla thariyanum bro
@letcode
@letcode Жыл бұрын
Namma channel la Java playlist irukum. Adhu podhum bro.
@vsselv
@vsselv Жыл бұрын
@@letcode okay i will watch bro entha topics thanja pothum konjam solluga bro
@jaiparthi1484
@jaiparthi1484 Жыл бұрын
Dynamic na yenna
@letcode
@letcode Жыл бұрын
Page la iruka elements oru oru time um different ah irukum
@jacksprrow2020
@jacksprrow2020 2 жыл бұрын
X path Tamil pls
@letcode
@letcode 2 жыл бұрын
Ok 😊
@jacksprrow2020
@jacksprrow2020 2 жыл бұрын
@@letcode bro login button div tag and class eruku I'd ela what locator is use Pana plsee.. telll
@letcode
@letcode 2 жыл бұрын
Xpath or css
@user-uw3up7qi2u
@user-uw3up7qi2u 4 ай бұрын
Thanks
@letcode
@letcode 4 ай бұрын
🎊
@sandhya_timi
@sandhya_timi Жыл бұрын
Yaru Sami neega 🙏
@letcode
@letcode Жыл бұрын
Koushik 😎
@shakthishakthi4935
@shakthishakthi4935 3 ай бұрын
Bro...driver.get() not working only chrome page is open How to solve this
@letcode
@letcode 3 ай бұрын
I guess chromedriver issue.
@shakthishakthi4935
@shakthishakthi4935 3 ай бұрын
@@letcode have downloaded chromedriver.exe and save into the folder
@bharathimaran2353
@bharathimaran2353 Жыл бұрын
I have written the below code, but I am getting exception the Sign out button. How to handle this Exception: Exception in thread "main" org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element ... is not clickable at point (951, 26). Other element would receive the click: ... package episode12; import java.util.concurrent.TimeUnit; import org.openqa.selenium.chrome.ChromeDriver; public class LaunchBrowserAndLogin { public static void main(String[] args) { // Launch ChromeDriver System.setProperty("webdriver.chrome.driver","./webdrivers/chromedriver.exe"); ChromeDriver driver = new ChromeDriver(); // load the URL driver.get("letcode.in/"); // Click Log In btn driver.findElementByLinkText("Log in").click(); // Enter Email driver.findElementByName("email").sendKeys("testemail.12@gmail.com"); // Enter pwd driver.findElementByName("password").sendKeys("Abcd123*"); // Click LOG IN driver.findElementByXPath("//button[.='LOGIN']").click(); // Wait driver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS); //Sign Out driver.findElementByLinkText("Sign out").click(); } }
@letcode
@letcode Жыл бұрын
kzbin.info/www/bejne/rabHmXiKgrF-fsU
@josepriston7635
@josepriston7635 2 жыл бұрын
Hi Bro , I am using this code to sign out but its showing error //click login off driver.findElementByLinkText("Sign out").click(); error : element click intercepted: Element ... is not clickable at point (1565, 26). Other element would receive the click: ...
@letcode
@letcode 2 жыл бұрын
Yes bro , because there is a toast message on top of sign out button, so the issue. You can wait for that to disappear. Then click in sign out.
@josepriston7635
@josepriston7635 2 жыл бұрын
@@letcode Thanks , i used "Thread.sleep(7000); " then its working
Handling Inputs | Selenium தமிழ் | Selenium Tamil Tutorial
21:07
LetCode with Koushik
Рет қаралды 19 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 31 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 157 МЛН
Alert | Selenium தமிழ் | Selenium Tamil Tutorial
20:20
LetCode with Koushik
Рет қаралды 19 М.
Different Locators In Selenium WebDriver || Best locator to use
44:28
Naveen AutomationLabs
Рет қаралды 128 М.
Selenium Interview Questions | PART-1 | Implicit Wait Explained in Depth | Tamil
22:43
Right Way To Learn Coding In 2024 | தமிழ்
7:49
Brototype Tamil
Рет қаралды 122 М.