Selenium Tutorial series | Tamil | PART 9 - Working with Radio Button

  Рет қаралды 50,547

Learn Automation Online

Learn Automation Online

Күн бұрын

In this video, we will learn how to handle Radio buttons. Radio buttons are one of the crucial components when coming to UI testing. Let's learn how to interact with Radio button using selenium, how to check if an element is selected or not.
#selenium #java #tamil #arulprasath #RadioButton
Best way to reach me (replies will be faster): KZbin comment section
Also, you can follow me on Facebook and Instagram.
Facebook: bit.ly/2TqPlis
Instagram: bit.ly/2Ez36rH
Visit my blog: www.learnautoma...

Пікірлер: 64
@SimplicitysSpotlight
@SimplicitysSpotlight 6 ай бұрын
I got good offer beacuse of u bro. thank you so much for vedios
@deepikasai4760
@deepikasai4760 4 күн бұрын
Thank you so much sir , I'm working at Accenture having 3.8 years of experience. But from start i had been put into manual only.. so many times I have thinked to learn automation.. but I lose hope when ever I start to learn.. I will not even see one proper video.. after a long time.. I got ur videos to be watched.. now i have started with your basics tutorial and now I have reached 9th video🥺🥺🥺 I can understand everything.. I'm getting some hope now... Thanks a lot.. it's all because of you ... Can u please guide me what is the order to learn for me sir ?? after basics ?? Please... Il be happy if u guide me 😍😍 once again thanks a lottt
@subha_ssk509
@subha_ssk509 2 жыл бұрын
Your my movitivation guru bro. Ippo than life la etho urupadiya panuromnu thonuthu
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
Keep going
@ambikaramasamy5648
@ambikaramasamy5648 3 жыл бұрын
Very nice videos. Really you are a great person. You have lot of patience and very excellent way of teaching. God bless you. I have a doubt copying xpath, when i copy xpath I am not getting absolute path only relative path. Is it necessary to copy full Xpath?
@ambikaramasamy5648
@ambikaramasamy5648 3 жыл бұрын
Moreover, those two radio buttons having value is false after run the java file. When I copy full xpath then it was showing correct values. Am I missing something? Why is it so?
@sivasakthi2660
@sivasakthi2660 2 жыл бұрын
Nice explaination super sir...
@saranyapurushothaman6417
@saranyapurushothaman6417 3 жыл бұрын
Sir , please make videos on appium framework .
@devconnie
@devconnie Жыл бұрын
Sir, you know everything and how did you learn everything?
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
Know everything ah? 😅. That’s not true. When there’s a need, we will do.
@dharunr4970
@dharunr4970 2 жыл бұрын
For unchecked, you have copied the XPath for below 20, Is there any reason for that? Why not unchecked xpath?
@Anukarthik17
@Anukarthik17 2 жыл бұрын
superb sir.keep rocking.
@vishnupriya2717
@vishnupriya2717 3 жыл бұрын
Hi arul. Pls do tutorial for soapui also
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
Sure.
@jamaludeenmk4558
@jamaludeenmk4558 4 жыл бұрын
Hi arul If i get the xpath of tye option below 20 im getting relative path only. Coding from root is not coming
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Why do you need absolute xpath? If you copy from browsers most of the times it will give be relative paths only.
@salmana35
@salmana35 4 жыл бұрын
Hi bro. which one is the best way to finding XPath? 1.use copy XPath 2. We write own XPath
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
If you want reliable xpath, you have to write it on your own. There other options, in interview you I'll be sled to write xpath. Better to write it on our own. This will help a lot when dealing with complex element. Please refer my xpath tutorial, it will be fun to learn
@chitrachithu750
@chitrachithu750 2 жыл бұрын
Hai Arulprasath.. i liked ur videos and it is very fun and useful.. I have one doubt.. in this radiobutton i have to select any one of this.. but however it will select any one radiobutton default.. I also want to select the same radiobutton which one selected the default .. if i select that default one definitely it will deselect right? how i can overcome that?
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
Before selecting u can put a condition if it's already selected or not in this case
@Arasuari
@Arasuari 2 жыл бұрын
When I executed and run, I'm getting o/p in console as False and False for both.
@ItsMe-rf7mo
@ItsMe-rf7mo Жыл бұрын
I too got the result as false.
@gouthmkrish5058
@gouthmkrish5058 3 жыл бұрын
Sir in this clip you are not copied uncheck box xpath. Instead of paste uncheck box xpath you were copied age group xpath
@gunaseelan-z9c
@gunaseelan-z9c Жыл бұрын
i have a doubt bro- if both radio buttons are selected. how to find bug and print there is bug using sysout
@MohanRaj-uo7ju
@MohanRaj-uo7ju 2 жыл бұрын
Sir in willing to join class for selenium
@anuashok8045
@anuashok8045 4 жыл бұрын
Hi Arul, I have a question that why do we need click the radio button”below 20”, we need to display the result of default page right!!! Can u explain more detail
@JG-iq2pn
@JG-iq2pn 2 жыл бұрын
Hi Atul,isSelected method always returns false whether it is checked or unchecked? Can you tell me why?
@kalaiselvichandrakasu2780
@kalaiselvichandrakasu2780 Жыл бұрын
Default ah endha option select agi irukku nu paaka ella element um find panni isselected pudurom ......appo more than five options irukapo ipadi than pannanuma ...is that good practice
@gopinathd2467
@gopinathd2467 2 жыл бұрын
Bro oru doubt... Eclipse la vera ethavathu oru selenium code ah run panna run aga matuthu current code mattum than run aguthu enna problem ah irukum
@explorewithgowri732
@explorewithgowri732 3 жыл бұрын
Thank you
@vigneshs9589
@vigneshs9589 Жыл бұрын
why we use boolean
@parthiban28
@parthiban28 5 жыл бұрын
Another question. We could have avoided line 30 and line 31 can be written as 'unchecked.click();' right? because line 19 & 20 serve the same purpose of line 30 if I am not wrong?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Yes I have forgotten that I had already found the element. ☺️
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
​@@LearnAutomationOnline Line 19 is webelement for unchecked, line 20 is for checked & line 30 is for 1-20 years rite? So if line 31 is re-written as unchecked.click(); it will check unchecked only rite how will it check 1-20 years?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Have already answered the same question in the previous comments. Please check
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
@@LearnAutomationOnline Actually in video u took the xpath of 1-20 years radio button in line 19 & latter changed the name alone to unchecked. Actually u should have taken the xpath of unchecked radio button & compared it with checked radio button according to the example. Here in video u r comparing 1-20 years radio button & checked radio button. This is where i got confused. Now i understood why line 30 can be removed & line 31 can be re-written as unchecked.click();
@B.BarathKumar
@B.BarathKumar 2 жыл бұрын
Hi Arul, is there any other way to click the radio button without using xpath. Because I need to use loop and search one radio button , if found then I need to click.
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
If you are going to use loop, then you will be using web elements? Iterate through the list of radio buttons? And then click?
@B.BarathKumar
@B.BarathKumar 2 жыл бұрын
@@LearnAutomationOnline Thanks Arul for the reply. Yes tried with web element but I am getting the error as "Element not intractable". Actually the radio button is in a label type.
@gowsikdhanapal1317
@gowsikdhanapal1317 2 жыл бұрын
can u take one to one class,
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
No sorrry I'm not taking personal sessions now.
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
i have a doubt based on the comments. Even though if we have id, will it harm us in anyway if we choose xpath? Similar to id, xpath is also unique right?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Xpath is not unique. If you look at xpath videos, you can understand that. id alone is the unique selector. Let's say, there are three buttons in the page. //Button will work for all the three buttons. But, selenium will perform on the first match. But ID will be unique for every element.
@karthikeyansugumar20
@karthikeyansugumar20 5 жыл бұрын
@@LearnAutomationOnline I placed over each radio button and got the xpath as below. Each are unique. In video u r gettin absolute xpath & i'm gettin relative xpath. What mistake i'm i doing in pullin the xpath? Unchecked - //*[@id="contentblock"]/section/div[2]/div/div/input[1] Checked - //*[@id="contentblock"]/section/div[2]/div/div/input[2] 1-20 years - //*[@id="contentblock"]/section/div[3]/div/div/input[1] 21-40 years - //*[@id="contentblock"]/section/div[3]/div/div/input[2] Above 40 years - //*[@id="contentblock"]/section/div[3]/div/div/input[3]
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Each xpath is different not unique. You are getting the correct xpath only. Look at the input numbers inside angular brackets. For every option it's Changing. Absolute or relative xpath is not a problem.the element should be selected correctly. You are not doing any mistake unless the program performs different operation.
@sukanyamuthu8937
@sukanyamuthu8937 4 жыл бұрын
brother oru common question ok. can we findelement by using xpath even the name variable available. will it make any issue ?
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
You can choose any selector you want. For example, a student will have a name and an id. It doesn't mean that you have to call by only one thing. You can call by name or id. Whichever you know. Same way, even if a element has I'd, name, etc. you can use xpath.
@sukanyamuthu8937
@sukanyamuthu8937 4 жыл бұрын
I got it brother from the comments section.
@sukanyamuthu8937
@sukanyamuthu8937 4 жыл бұрын
@@LearnAutomationOnline thanks brother
@gowsikdhanapal1317
@gowsikdhanapal1317 2 жыл бұрын
its ok sir.
@parthiban28
@parthiban28 5 жыл бұрын
Hi Mr.AP, I have a question here. When you write the code for 19th line you are copying XPath even though Name is available. Based on your previous instructions from the earlier videos we are supposed to copy XPath in case we couldn't find ID, Name and Class right? Is my question correct or am I missing here something?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Hi Parthiban, if you inspect the radio buttons, you can see all the radio buttons have the same name and class name. Selenium will perform the operation on the first matching element. So in order to perform the operation on the desired element, we are selecting the xpath. But your understanding is correct, if we have id, name or class we have to rely on that. However, if there are multiple elements with the same name or class it's better to choose xpath. Hope have answered your question. If not please let me know.
@parthiban28
@parthiban28 5 жыл бұрын
@@LearnAutomationOnline My bad. You have told this in the video and I couldn't catch that. Thanks.
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
That's ok. ☺️
@jamaludeenmk4558
@jamaludeenmk4558 4 жыл бұрын
@@LearnAutomationOnline for below 20,21-40 and above 40 the name is same. Then y r u taking name instead of xpath
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
As mentioned earlier, selenium will perform operations on the first found element. Is itna second element of that name and still is working?. Try hands-on and see the results. The UI page may have been changed.
@sivakys
@sivakys 5 жыл бұрын
I explained data driven frmwrk but they ask me map what is that?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Map is a special collection type in java. It's not selenium based. It's java. For selenium interview, they will ask, questions from java collection as well. There is a separate series for that as well. Java crash course will be available on playlists. Refer them
@mageshwars5191
@mageshwars5191 4 жыл бұрын
Sir I'm doing my final year in bsc. Physics with computer application. Can I directly join in a IT company as a automation tester?
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Yes you can. As long as u have majored something which has mathematics, are eligible.
@indiantourism975
@indiantourism975 3 жыл бұрын
👌👌👌
Selenium Tutorial series | Tamil | PART  10 - Working with Check Boxes
10:59
Learn Automation Online
Рет қаралды 49 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 28 МЛН
How To Select Dynamic Radio Button In Selenium WebDriver | Java
16:52
Automation Testing
Рет қаралды 19 М.
Selenium Interview Questions | PART-1 | Implicit Wait Explained in Depth | Tamil
22:43
Must Know JAVA concepts | Selenium Automation | PART - 1 | Working with Databases
26:13
Selenium Tutorial series | Advanced Concepts | PART  11 - Windows Handling |Tamil
28:18
Implicit  Wait | Selenium தமிழ் | Selenium Tamil Tutorial
9:59
LetCode with Koushik
Рет қаралды 21 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 28 МЛН