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

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии •

  • @kadalivaraprasad450
    @kadalivaraprasad450 3 года назад +6

    No one will beat you on the Selenium concepts explanation

  • @jyotimukherjee4347
    @jyotimukherjee4347 3 года назад +4

    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🙂

  • @aayushpatel3360
    @aayushpatel3360 3 года назад +2

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

  • @mounika3006
    @mounika3006 2 года назад +1

    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 !

  • @mohammednasir457
    @mohammednasir457 3 года назад +3

    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 windowhandles = driver.getwindowhandles();
    ArrayList windows = new ArrayList (windowhandles);
    driver.switchTo().window(windows.get(i));
    where i is the index of the window to be switched;

  • @Udzial
    @Udzial 3 года назад +2

    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!!

  • @kamaljayasawal6879
    @kamaljayasawal6879 3 года назад +2

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

  • @vishalvishwakarma4199
    @vishalvishwakarma4199 2 года назад

    One of the finest video and solution

  • @bhavanamahajan3657
    @bhavanamahajan3657 3 года назад +2

    @Naveen : Thank you so much for helping us.

    • @bhavanamahajan3657
      @bhavanamahajan3657 3 года назад

      @Naveen, yesterday I had interview with L&T and he asked me that if the chrome version is keep on changing every week then how would you handle this? We are not supposed to do any manual intervention in this case.. Could you please help us with this question as well?

  • @anitsarker4591
    @anitsarker4591 3 года назад +3

    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?

  • @darshiya8895
    @darshiya8895 3 года назад +1

    Thank you for the clear explanations.....it helps a lot

  • @krishnageete6070
    @krishnageete6070 3 года назад +1

    Very good explanation, Thanks Naveen!!

  • @amlan5448
    @amlan5448 3 года назад +1

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

  • @pratimchakraborty8933
    @pratimchakraborty8933 2 года назад

    @naveen you are a messiah for QAs

  • @sweetthirty2
    @sweetthirty2 3 года назад +2

    superb superb sir

  • @isimkhan7043
    @isimkhan7043 2 года назад

    Your explanation is perfect

  • @nirmalakshirsagar6462
    @nirmalakshirsagar6462 3 года назад +1

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

  • @ashish29x.
    @ashish29x. 3 года назад +1

    Hi Naveen, I have a question regarding scroll into view. May I know, how can we implement the scripts to identify the specific web element without using scroll into view with some action. that means I need to set up the window page size such as chrome zoom % then we won't need to scroll down then click due to by default it is using 100% zoom & it doesn't matter whatever I have set up my chrome zoom % in current setting instead of the window size (dimension setup).

  • @shanthkumar4709
    @shanthkumar4709 2 года назад

    This guy is Amazing ❤️

  • @rupamkarmakar2315
    @rupamkarmakar2315 10 месяцев назад

    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.

  • @vidhyamanickaraj5802
    @vidhyamanickaraj5802 3 года назад +1

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

  • @ABAutomationHub
    @ABAutomationHub 3 года назад +2

    Nice Explanation 👏👏 Good Work👍

  • @saurcandy1600
    @saurcandy1600 Год назад

    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?

  • @lauraa762
    @lauraa762 10 месяцев назад

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

  • @sandeepkokane9549
    @sandeepkokane9549 3 года назад +1

    Thank u so much Naveen 👍

  • @sweetthirty2
    @sweetthirty2 Год назад

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

  • @alim241081
    @alim241081 4 месяца назад

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

  • @kshipra4504
    @kshipra4504 2 года назад +1

    why set to list conversion??

  • @dsahith5412
    @dsahith5412 Год назад

    Hi Naveen,Is this applicable if we run our code in headless mode?

  • @AliG-se4ph
    @AliG-se4ph 2 года назад +1

    great explanation

  • @surendratimmidi6328
    @surendratimmidi6328 3 года назад

    Good explanation naveen

  • @tusharrahane549
    @tusharrahane549 3 года назад +2

    is it possible to run test cases daily on specific time without human intervention. Let me know how?

    • @manjugajre2939
      @manjugajre2939 3 года назад +1

      Using Jenkins it is possible..

    • @tusharrahane549
      @tusharrahane549 3 года назад

      @@manjugajre2939 How? kindly share any reference link

    • @irateinwit
      @irateinwit 3 года назад +2

      Windows schedular ?

    • @mohammednasir457
      @mohammednasir457 3 года назад

      @tushar, there are multiple ways to schedule your automated tests
      1) You can create a batch file and place that in the windows task scheduler
      2) You can create Jenkins pipeline and set the trigger
      3) You can create pipelines on Azure/AWS and schedule the trigger

  • @sankararaojeeru4333
    @sankararaojeeru4333 2 года назад

    Thank you so much Naveen :)

  • @kajolhipparge5123
    @kajolhipparge5123 Год назад

    Hi Naveen
    I want to open a multiple windows and by closing all the windows I want to switch on parent window.
    Also want to get the title of all the window.
    Could you please help me to resolve this

  • @Nandhis
    @Nandhis 3 года назад +1

    Thank you Naveen 👍

  • @neelkantraj9092
    @neelkantraj9092 3 года назад

    Hey naveen trying to contact you, however not able to....
    Need your paid videos oly for devops part... please reply

  • @nikhilkanojia1683
    @nikhilkanojia1683 Год назад

    thanks, this was awesome code wrt window handles.

  • @anthonydsouza1817
    @anthonydsouza1817 3 года назад +1

    there is no need for List until you want to get the index by using normal for loop

  • @astrologytalk8984
    @astrologytalk8984 Год назад

    why was List created and Set contents put into it? pls can anyone answer?

  • @AmitSingh-tk1il
    @AmitSingh-tk1il 3 года назад

    Awesome sir 👏

  • @rubalverma4930
    @rubalverma4930 2 года назад

    HI Naveen while switching to next window in IE browser, am getting "NoSuchWindowException : unable to get browser " could you please help me out in this

  • @alokranjan6831
    @alokranjan6831 Год назад

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

  • @sudheerkumar2997
    @sudheerkumar2997 3 года назад

    Write a program to convert number into digit and print in descending order and highest value.Can you please help me on this

  • @sonalirathod9950
    @sonalirathod9950 2 года назад

    Hey Naveen, how we can close window without confirmation alert ? Please ans me expecting ans from you
    Thank you

  • @prasannamaithili8231
    @prasannamaithili8231 3 года назад +3

    Excellent. But after taking set why we are taking array list

    • @bihari1422
      @bihari1422 3 года назад

      Because set are unordered in nature.

    • @chandusekhar3164
      @chandusekhar3164 3 года назад

      Whatever the order, we are comparing again with window title before switch. Why convert to list?

    • @PradipYogi59
      @PradipYogi59 3 года назад

      You can use set no issues

    • @vinayp959
      @vinayp959 3 года назад

      Yes, can not we direct use of list instead of set?

    • @prasannamaithili8231
      @prasannamaithili8231 3 года назад +1

      @@vinayp959 let us try

  • @nilstoned7593
    @nilstoned7593 3 года назад +1

    I'm gonna try this with streams.

  • @aishmagupta3160
    @aishmagupta3160 3 года назад

    Hi, please guide me on the below query.
    Im an automation engineer (3.5+ Selenium + java, C# + Jenkins).
    For my career growth should i continue as Automation developer or move to DevOps? If yes then what could be the ideal experience to switch into DevOps?
    Will staying in Automation will be as same as DevOps in terms of profitability?
    Thank-you in Advance 😊

  • @RohitChhavi
    @RohitChhavi 11 месяцев назад

    These xpath is not working for me could you please help

  • @kwimuk5429
    @kwimuk5429 2 года назад

    sir i have a question about this chapter that i got an error invaliderror the same code why? and how should i do? plz check and give the teaching

    • @sauravnayak5188
      @sauravnayak5188 Год назад

      Sir how would anyone would be able to understand what error you’re getting …. Insufficient info

  • @jayeshkumar2815
    @jayeshkumar2815 Год назад

    Hi Naveen i have interview questions like if we have open 4 windows and but want to close 3rd window I'm any window from four of them so this code can we make work for it

    • @sauravnayak5188
      @sauravnayak5188 Год назад

      You can provide some identification to 3rd window and switch to that window by using driver.switchto().window(3rdwindowidentification);
      And then use driver.close();

  • @vinayp959
    @vinayp959 3 года назад +1

    Here, you are switching to all the open tabs and compare the title in rightwindow method, that means execution time will effect we really have 100 or more than windows. Can not we switch to required window without compare the title? Using index also may not work if open window order change. How can we achieve in this scenario?

    • @naveenautomationlabs
      @naveenautomationlabs  3 года назад +1

      This is what I mentioned at the end. Please watch it once again.

    • @vinayp959
      @vinayp959 3 года назад

      @@naveenautomationlabs yes, can you do a video with steams as well. I don't have much knowledge on java streams.

  • @adyasharma2601
    @adyasharma2601 2 года назад

    Hi Sir,i did not understand why did you convert set to list,Please can yiu explain that!

    • @naveenautomationlabs
      @naveenautomationlabs  2 года назад

      Just to convert it to order based collection

    • @helloramesh6193
      @helloramesh6193 Год назад

      @@naveenautomationlabs my dear sister learn java first , in english u should learn abcd like that

  • @kadalivaraprasad450
    @kadalivaraprasad450 3 года назад

    Is there any chance for two pages have same title, if same how we will achieve switch to window required
    @Naveen

  • @sssaamm29988
    @sssaamm29988 3 года назад

    Set does not maintain the insertion order?

    • @Taheershaik
      @Taheershaik 3 года назад +1

      Set will not maintain the insertion order, the elements are store based on hashcode values... However its impl class Linked HashSet maintains the insertion order.

  • @sekharbabu2851
    @sekharbabu2851 10 месяцев назад

    If i want to go to last opened window(Without using index),can some one please help

  • @kunalkaushal4155
    @kunalkaushal4155 2 года назад

    Suppose there is 10 tabs open in window , now i have open a new tab. How can we identify recent open tab .

    • @sauravnayak5188
      @sauravnayak5188 Год назад

      You have to first store 10 tabs handles in Set initialTabs =driver.getWindowHandles();
      Then again use same
      Set PostTabs =driver.getWindowHandles();
      Now you can easily identify newly opened tab by differentiating initialTabls & PostTabs

  • @bihari1422
    @bihari1422 3 года назад

    If someone wants homework then he can go ahead and print what was the index of the opened tab. For eg. What was the index of the facebook tab out of all opened tabs

    • @naveenautomationlabs
      @naveenautomationlabs  3 года назад +2

      Yes maintain the counter and keep increasing it. Once Facebook is found. Print the counter.

  • @user-dr9iw3px4f
    @user-dr9iw3px4f 2 года назад

    Thanks

  • @MsNivriti
    @MsNivriti 3 года назад

    How to switch to correct Alert if there are 6 Alert pop up

    • @naveenautomationlabs
      @naveenautomationlabs  3 года назад

      How can you get 6 alert pop ups at the same time?

    • @MsNivriti
      @MsNivriti 3 года назад

      @@naveenautomationlabs this question is asked to me during interview how you can handle 6 pop up at same time?

  • @-zokzok-9455
    @-zokzok-9455 2 года назад

    if we have 100 pages open or more and we are gonna be switching one by one checking title we are gonna do that until next morning.

    • @sauravnayak5188
      @sauravnayak5188 Год назад

      No one is gonna use 100 windows tbh .. If you do you will find solutions

  • @luckyraj6206
    @luckyraj6206 3 года назад +1

  • @rohanpatil8451
    @rohanpatil8451 2 года назад

    how can take screenshot of ua code bro