@LetCode with Koushik I had to watch twice to understand the concept of closing the parent, and switching the focus back to Child. I have clear understanding now how to switch between the windows. Will do the hands on as well.. !! Thanks for your efforts bro...! Good explanatory tutorial session once again..!
Bro nenga matu epdi Letpathnu oru option choose panringa adhula diff of xpaths not only for xpath also for id name etc.... Enaku andha option ila so adha epdi use panradhunu konjam solringala please.....
Hi Koushik bro, your videos are awesome... One doubt, I am able to see the current url by simply passing this "driver.switchTo().window(list.get(1))" without calling Set and List for the second time. Please correct me if am wrong... Thanks for your videos
Hi bro clear and add Panama direct ah index 1 kuduthu since pani run panalama? Sysout(driver.getcurrenturl()); String CUrl = driver. Getcurrenturl ()); Sysout (driver.getcurrenturl()) ; 2 kum Ena difference bro
One is with variable and other is without variable. Sysout use panna direct ah print aidum, value use panna mudiyathu. Variable la store panna future la need irundha namma use pannikalam. Idhu Java basics videos la explained bro check pannunga.
Brother,oru doubt multiple windowsla..... Iteration method potu open aana windows oda title eduka mudila but endha errorum kaatla.....codelayum...so title eduka ena pananum....
How can we switch the windows using string only? Not by using index value. I meant to say windowhandles will have unique value to each window right? So how can we use these string value directly to switch the window.
Bro I need your help.. If I put windowhandles, it's not showing only one window ID but actually I have POP UP while sign in. By through I want to do Sign in with Google account.
Hi Koushik, One doubt.. Iam not much pro in selenium code, knows basics. Can you clarify what if we go to driver. Switchto(). Windows(list.get(0)) ; after closing the parent window?? As the list takes the next one as index 0 automatically and can switch to the child window.. Why we need to define set string and list. Addall again? Any exception comes?
getWindowHandles return set (linkedhashset). So we are storing in set. In set we don't have an option to use get function ( I have explained in the set and list video why get function is not available). So we are adding all the values from set to list, so that I can use the get function. Now assume we have 2 windows. So get window handles function will return 2. We are adding the same in list. So list will also have 2. Now if you close any of the window then still the list or set size will not change because the browser tab is only closed, the size is not updated.
hi bro,in the task section you mentioned point 4.close parent , 5.close child so far now i have only 2 tabs after performing close parent and child tabs there is execution stops..how can perform 6?
@@letcode bro, i have to say a thing, i got placed last week in application support.. Selenium is my additional skill big thanks to you and your videos..
in ecllipse how to get return type automically in ecllipse ide.. shortcut key like u did in videos bro .. i want windows handling more clearly bro.. thanks..
@@letcode Hi Kaushik...The interview questions is:Totally 11 windows are opened in browser.want to close 10 new window except the parent window which is first window.?can u help me out with answer?
@@dineshdamodharan1454 when u open the launch the browser there itself use the function getWindowHandle which will give the parent window Id. From any window u can switch to the parent using that parent window handle
@Koushik, Bro just because of test steps I jumped from Jasmine to Mocha and now I am not able to achieve data driven as I am not able to achieve like Jasmine data provider or neither using foreach... Please help bro , waiting for ur Protractor videos from long long time. Please help
I'm sick that's y not able to make any video this week. I'll do it ASAP. Test step is new for me as well so have to dig a little into it. Hopefully will come with a solution.
@@letcode Sorry Thalaiva my intention was not to disturb you at this time , please take care of your health. Health is most important than anything else.... It's ok I will somehow achieve it. Sorry again for disturbing you bro.
@LetCode with Koushik I had to watch twice to understand the concept of closing the parent, and switching the focus back to Child. I have clear understanding now how to switch between the windows. Will do the hands on as well.. !! Thanks for your efforts bro...! Good explanatory tutorial session once again..!
bro once the selenium course is done.. please do framework series with end to end using selenium .. it will be really useful for learners.
Really the way of teaching is good
Thanks bro 😀
Thank you so much for the clear explanation
Welcome 😊
Very usefull bro thank u 👍🏻
Thanks 👍
Hii , I have doubt on no such window exception, when my second window opens after performing the action is closed automatically without driver.close
Even if the window closes automatically, we have to do the switching.
Bro nenga matu epdi Letpathnu oru option choose panringa adhula diff of xpaths not only for xpath also for id name etc....
Enaku andha option ila so adha epdi use panradhunu konjam solringala please.....
th-cam.com/video/Oz13qjh1aqE/w-d-xo.html
Bro your code is really useful!! can we use if or switch if yes please explain Thanks...
Thanks , we can but no need bro, this is the easiest way.
Hi Koushik bro, your videos are awesome...
One doubt, I am able to see the current url by simply passing this "driver.switchTo().window(list.get(1))" without calling Set and List for the second time. Please correct me if am wrong... Thanks for your videos
Thanks,
As you already generated the list it should have the details.
If the tabs are closed then you have to use the list again
@@letcode got it, thanks bro...Big fan of you....Please create a Performance testing and API automation series....
API testing coming soon 🔜
@@letcode 👍
Bro switchto ku badhila navigate tharalama bro adhum same ah dhan ah work aavun
No bro, index base la work agum, negative la yedhum erukadhu.
Bro HomeWork la step6 epdi pandrathu? both parent and child tabs close panna stop aagiduthu so one at a time pananuma?
Yes bro
@@letcode thanks bro now got it 🫂
bro robotic framework tutorial tamil ah podunga bro konjam ennaku useful ah irukum
Python avalova theriyadhu bro, na learn pannitu pakkuran.
Okk bro Tosca automation , appium tool use video podunga bro
Hi bro
clear and add Panama direct ah index 1 kuduthu since pani run panalama?
Sysout(driver.getcurrenturl());
String CUrl = driver. Getcurrenturl ());
Sysout (driver.getcurrenturl()) ;
2 kum Ena difference bro
One is with variable and other is without variable.
Sysout use panna direct ah print aidum, value use panna mudiyathu.
Variable la store panna future la need irundha namma use pannikalam.
Idhu Java basics videos la explained bro check pannunga.
what shortcut key you r using to see the source code for windowhandles..
th-cam.com/video/arOraX0ubTk/w-d-xo.html
Brother,oru doubt multiple windowsla.....
Iteration method potu open aana windows oda title eduka mudila but endha errorum kaatla.....codelayum...so title eduka ena pananum....
Iteration la potalum num varum bro, correct ah driver eh get agudha nu check pannu bro.
@@letcode check pana but varla ena problemnu kandu pudika mudila......
How can we switch the windows using string only? Not by using index value. I meant to say windowhandles will have unique value to each window right? So how can we use these string value directly to switch the window.
We r using the index to get that position of the window, as the data type is string we r passing string only.
hi bro one doubt suppose if there is 4 to 5 tabs how to handle that?
Same concept, but in reality there shouldn't be more than 2 or max 3, as it is considered as a bad UI/UX
Bro I need your help.. If I put windowhandles, it's not showing only one window ID but actually I have POP UP while sign in. By through I want to do Sign in with Google account.
Is the Google sign-in within the page or separate window ?
@@letcode separate window bro
Bro Help me.. as I can see this POP up window as Model plugin. how to handle this plugin using xpath
Anna....I launched Amazon website, from there I opened 10 new tabs. Now I want close all the other tabs except the parent window. How can I do this?
Switch from index 1 and close bro
Bro mobile app testing using selenium related ah panunga bro.
Ok bro
Hi Koushik,
One doubt.. Iam not much pro in selenium code, knows basics. Can you clarify what if we go to driver. Switchto(). Windows(list.get(0)) ; after closing the parent window?? As the list takes the next one as index 0 automatically and can switch to the child window.. Why we need to define set string and list. Addall again? Any exception comes?
getWindowHandles return set (linkedhashset).
So we are storing in set.
In set we don't have an option to use get function ( I have explained in the set and list video why get function is not available).
So we are adding all the values from set to list, so that I can use the get function.
Now assume we have 2 windows.
So get window handles function will return 2.
We are adding the same in list. So list will also have 2.
Now if you close any of the window then still the list or set size will not change because the browser tab is only closed, the size is not updated.
@@letcode thank you so much for the prompt response 😀
I hope it's clear now 😃
Great video
Thanks 😊
After 25th line, why we are creating set and list again, of course there is only one window automatically the focus is on that window only?
In UI the focus wil change automatically bro, but we have to specify that in code. Else it will not work.
hi bro,in the task section you mentioned point 4.close parent , 5.close child so far now i have only 2 tabs after performing close parent and child tabs there is execution stops..how can perform 6?
Bro u didn't get it ?
@@letcode yes i do bro, i forgot to delete the comment..
@@vino9997 no issues bro, happy learning ☺️
@@letcode bro, i have to say a thing, i got placed last week in application support.. Selenium is my additional skill big thanks to you and your videos..
@@vino9997 awesome bro ☺️
in ecllipse how to get return type automically in ecllipse ide.. shortcut key like u did in videos bro .. i want windows handling more clearly bro.. thanks..
th-cam.com/video/arOraX0ubTk/w-d-xo.html
ctrl2 + L
hello,ould u please tell me what extensions do u use to find the xpath"??
LetXPath
chrome.google.com/webstore/detail/letxpath/bekehlnepmijedippfibbmbglglbmlgk?hl=en
Selenium la Ellam concept poduga bro
Kandipa bro 😊
Hi Kaushik..Is this possible to close all the window except parent window?
Yes, switch to child window and driver.close.
@@letcode Hi Kaushik...The interview questions is:Totally 11 windows are opened in browser.want to close 10 new window except the parent window which is first window.?can u help me out with answer?
Use getwindowhandles function, it will return a set, use loop from 1 . Switch to that window and close.
@@letcode Thanks koushik
Welcome bro 😁
bro close aana parent window epdi marumadiyum open panradu?
Close aanadhu panna mudiyadhu.
@@letcode thanks ✌
what is the shortcut key to create local variable
th-cam.com/video/arOraX0ubTk/w-d-xo.html
XPath eppadi copy paanu neenga ,,,..... 16:48 using chropath aa?
LetXPath bro
@@letcode extension ahh? In chrome browser?
Yes
th-cam.com/video/Oz13qjh1aqE/w-d-xo.html
@@letcode learning selenium java, this letXPath is so so so much useful, thank you behalf of this
Nandri 😊
bro i have an issue that is "index out of bounds exception" now what to do?
Once u get the window handles add it to the list correctly
What is the use remote web driver
Remote web driver is the parent class of chromeDriver and other drivers.
For olmore information
th-cam.com/video/4SEr3M8hzyY/w-d-xo.html
thank you
Welcome bro 😊
@kowshik bro how is ur health now ?
I'm good now, thank you ☺️
Bro,I am able to switch but unable to perform operations on the child window
Any exceptions?
@@letcode bro I myself resolved it
Anna please teach frame work base class
Its in progress, watch all the videos.
Bro ,How to retain the closed parent window to access the multi window ?
Didn't get u bro
@@letcode
Windows handle la 8 points erukula athula parent(3) and child(4) window close panitu
Epadi again parent window pogurathu ?
Parent window pona thana multiple window click pana mudiyum
@@dineshdamodharan1454 when u open the launch the browser there itself use the function getWindowHandle which will give the parent window Id. From any window u can switch to the parent using that parent window handle
@@letcode epo parent and child window close panitu
Parent window poga epadi code pananum
Antha functionha code pani kaatunga bro
Close panna poga mudiyadhu bro
@koushik, Bro Protractor series pleaseeeeeee🙏🤔
bro make a method for windows handle in base class
Already it's there bro, kindly refer the framework videos ☺️
bro I have one doubt bro , how to contact u bro
U can ask here, or join our discord.
hey come check out Discord with me discord.gg/2bTyF7gR
@Koushik, Bro just because of test steps I jumped from Jasmine to Mocha and now I am not able to achieve data driven as I am not able to achieve like Jasmine data provider or neither using foreach...
Please help bro , waiting for ur Protractor videos from long long time.
Please help
I'm sick that's y not able to make any video this week. I'll do it ASAP.
Test step is new for me as well so have to dig a little into it. Hopefully will come with a solution.
@@letcode Sorry Thalaiva my intention was not to disturb you at this time , please take care of your health.
Health is most important than anything else....
It's ok I will somehow achieve it.
Sorry again for disturbing you bro.
Amazon multi tab eppadi open panradhu
Same concept dhan bro , any issue?
@@letcode video irukka
No bro
@@letcode eppadi pannaum hint thhanga
Bro open 5 tabs close 1st 2 tabs then last 2tabs
Na pannanum ah bro ?
@@letcode s bro
Bro source code epadi panuniga
Angular bro 😊
List.get() is not listing for me bro
Import list from Java . Util
@@letcode thank u bro.. U r doing a great job
Welcome 😊