Switch to a specific window out of 100 windows and validate it in #Selenium

preview_player
Показать описание
In this video, I have covered one interview question:
Switch to specific window out of 100 windows and validate it in #Selenium.

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Naveen AutomationLabs Paid Courses:
Java & Selenium:

Java & API +POSTMAN + RestAssured + HttpClient:
Рекомендации по теме
Комментарии
Автор

Hello Naveen Sir. Thank you from bottom of my heart🙏🙏🙏 for making such useful contents in ur channel through which we gained so much knowledge. Because of urs video in Java, selenium, api and all I got placed in one of the renowned company in UK as software tester after a 5 years of career gap. I was a manual tester in my previous company but learning thru urs video I got so much confidence in automation that helps me alot to face the interviews in automation profile. You are doing great sir...thank you once again sir🙏🙏🙏 . You are true gem🤩🤩. Hopefully you read this msg🙂

jyotimukherjee
Автор

No one will beat you on the Selenium concepts explanation

kadalivaraprasad
Автор

something out of box question and you swiftly handle it Naveen. I say its incredible

aayushpatel
Автор

Hi Naveen, The question here is switching to a specific window, lets say out of 100 windows i need to switch to the 25th window then instead of switching to all windows and getting the title, u should be able to switch to the 25th window directly with one line of code based on the index of the list, the code should somewhat look like this

Set<string > windowhandles = driver.getwindowhandles();

ArrayList<string> windows = new ArrayList<string> (windowhandles);



where i is the index of the window to be switched;

mohammednasir
Автор

Thank you so much, your videos are really helpfull !
When I feel automation challenging, I just watch your videos and it gives me solution.

Thank you !

mounika
Автор

Wonderfull Explanation..but only thing is no need to use list if we can do the same with set as well. 🙏

kamaljayasawal
Автор

Well explained and good to create generic functions as you have explained to easily move between and title is a good assertion point!! Keep up the good work!!

Udzial
Автор

@Naveen : Thank you so much for helping us.

bhavanamahajan
Автор

It's really helpful video naveen, but this question asked for fresher or experince person, pls mention that thing, for other helpful for

nirmalakshirsagar
Автор

Hi Naveen, You are videos help us a lot. I have a little different question. We use MQs in between the webserver and app servers to log the communications. We use SSH client to fetch these logs and validate them. How can we automate this, because the logs are live and keep coming?

anitsarker
Автор

Thank you for the video. However could you also make a video on how to use this SwitchToRightWindow as a reusable method in a different Java Class as it is not feasible to write such huge block every time.

rupamkarmakar
Автор

Very good explanation, Thanks Naveen!!

krishnageete
Автор

Thankyou so much!Sir...very good explanation 👏

vidhyamanickaraj
Автор

Thanks Naveen. Could you also please make a video on the same origin policy. I was asked in the recent interview.

amlan
Автор

I have one doubt. why we have converted that set into list? we can itrate in the set too right?

lauraa
Автор

Why did we have to convert set into arrayList, is it because set doesnt maintain any order, however we would be still able to iterate a set. So why we are converting?

saurcandy
Автор

i have a question why we are using list here, same thing we can achive by set also

alim
Автор

Hi Naveen, I got interview qstn for you. "how to switch from one window pop to another window popup in selenium"

alokranjan
Автор

thanks, this was awesome code wrt window handles.

nikhilkanojia
Автор

sir i have mailed you one question please make a short video on that

sweetthirty