Window Handling | Selenium தமிழ் | Selenium Tamil Tutorial

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

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

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

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

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

    bro once the selenium course is done.. please do framework series with end to end using selenium .. it will be really useful for learners.

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

    Really the way of teaching is good

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

      Thanks bro 😀

  • @radhadk9235
    @radhadk9235 5 месяцев назад +1

    Thank you so much for the clear explanation

    • @letcode
      @letcode  5 месяцев назад

      Welcome 😊

  • @sasidhar9587
    @sasidhar9587 Год назад +2

    Very usefull bro thank u 👍🏻

  • @rajasivagnanam6144
    @rajasivagnanam6144 5 месяцев назад +1

    Bro your code is really useful!! can we use if or switch if yes please explain Thanks...

    • @letcode
      @letcode  5 месяцев назад

      Thanks , we can but no need bro, this is the easiest way.

  • @akakil06
    @akakil06 2 месяца назад +1

    Bro mobile app testing using selenium related ah panunga bro.

  • @kannikadevig5555
    @kannikadevig5555 4 месяца назад +1

    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

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

      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

    • @kannikadevig5555
      @kannikadevig5555 4 месяца назад +1

      @@letcode got it, thanks bro...Big fan of you....Please create a Performance testing and API automation series....

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

      API testing coming soon 🔜

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

      @@letcode 👍

  • @ssrinath7581
    @ssrinath7581 11 месяцев назад +1

    bro robotic framework tutorial tamil ah podunga bro konjam ennaku useful ah irukum

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

      Python avalova theriyadhu bro, na learn pannitu pakkuran.

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

      Okk bro Tosca automation , appium tool use video podunga bro

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

    thank you

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

      Welcome bro 😊

  • @vishwahari957
    @vishwahari957 Год назад +1

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

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

      ruclips.net/video/Oz13qjh1aqE/видео.html

  • @kavinilavusekar9326
    @kavinilavusekar9326 Год назад +1

    Hii , I have doubt on no such window exception, when my second window opens after performing the action is closed automatically without driver.close

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

      Even if the window closes automatically, we have to do the switching.

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

    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?

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

      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.

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

      @@letcode thank you so much for the prompt response 😀

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

      I hope it's clear now 😃

    • @TechTamilInputs
      @TechTamilInputs Год назад +1

      Great video

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

      Thanks 😊

  • @ManishKumar-vu1nc
    @ManishKumar-vu1nc Год назад +2

    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.

    • @letcode
      @letcode  Год назад +1

      We r using the index to get that position of the window, as the data type is string we r passing string only.

  • @manojkaarthick6298
    @manojkaarthick6298 3 месяца назад +1

    hi bro one doubt suppose if there is 4 to 5 tabs how to handle that?

    • @letcode
      @letcode  3 месяца назад

      Same concept, but in reality there shouldn't be more than 2 or max 3, as it is considered as a bad UI/UX

  • @irshadahamed5786
    @irshadahamed5786 Год назад +1

    Bro switchto ku badhila navigate tharalama bro adhum same ah dhan ah work aavun

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

      No bro, index base la work agum, negative la yedhum erukadhu.

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

    bro make a method for windows handle in base class

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

      Already it's there bro, kindly refer the framework videos ☺️

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

    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
      @letcode  2 года назад

      ruclips.net/video/arOraX0ubTk/видео.html

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

      ctrl2 + L

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

    Selenium la Ellam concept poduga bro

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

      Kandipa bro 😊

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

    @koushik, Bro Protractor series pleaseeeeeee🙏🤔

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

    Anna please teach frame work base class

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

      Its in progress, watch all the videos.

  • @ABDURRAHMAN-rl8mh
    @ABDURRAHMAN-rl8mh Год назад +1

    what shortcut key you r using to see the source code for windowhandles..

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

      ruclips.net/video/arOraX0ubTk/видео.html

  • @vaishnavisrinivasan9085
    @vaishnavisrinivasan9085 Год назад +1

    What is the use remote web driver

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

      Remote web driver is the parent class of chromeDriver and other drivers.
      For olmore information
      ruclips.net/video/4SEr3M8hzyY/видео.html

  • @Balakrishnan-up5wl
    @Balakrishnan-up5wl Год назад +1

    what is the shortcut key to create local variable

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

      ruclips.net/video/arOraX0ubTk/видео.html

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

    hello,ould u please tell me what extensions do u use to find the xpath"??

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

      LetXPath
      chrome.google.com/webstore/detail/letxpath/bekehlnepmijedippfibbmbglglbmlgk?hl=en

  • @vishwahari957
    @vishwahari957 Год назад +1

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

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

      Iteration la potalum num varum bro, correct ah driver eh get agudha nu check pannu bro.

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

      @@letcode check pana but varla ena problemnu kandu pudika mudila......

  • @mohamedmarzook7530
    @mohamedmarzook7530 8 месяцев назад

    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

    • @letcode
      @letcode  8 месяцев назад

      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.

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

    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?

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

      In UI the focus wil change automatically bro, but we have to specify that in code. Else it will not work.

  • @GK-tq3uz
    @GK-tq3uz Год назад +1

    Bro HomeWork la step6 epdi pandrathu? both parent and child tabs close panna stop aagiduthu so one at a time pananuma?

    • @letcode
      @letcode  Год назад +1

      Yes bro

    • @GK-tq3uz
      @GK-tq3uz Год назад +1

      @@letcode thanks bro now got it 🫂

  • @selvamathiseelang1105
    @selvamathiseelang1105 Год назад +1

    XPath eppadi copy paanu neenga ,,,..... 16:48 using chropath aa?

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

      LetXPath bro

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

      @@letcode extension ahh? In chrome browser?

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

      Yes
      ruclips.net/video/Oz13qjh1aqE/видео.html

    • @selvamathiseelang1105
      @selvamathiseelang1105 Год назад +1

      @@letcode learning selenium java, this letXPath is so so so much useful, thank you behalf of this

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

      Nandri 😊

  • @jeffreyrenold4123
    @jeffreyrenold4123 7 месяцев назад +1

    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?

    • @letcode
      @letcode  7 месяцев назад

      Switch from index 1 and close bro

  • @meenraj5802
    @meenraj5802 Год назад +1

    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.

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

      Is the Google sign-in within the page or separate window ?

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

      @@letcode separate window bro

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

      Bro Help me.. as I can see this POP up window as Model plugin. how to handle this plugin using xpath

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

    Hi Kaushik..Is this possible to close all the window except parent window?

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

      Yes, switch to child window and driver.close.

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

      @@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?

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

      Use getwindowhandles function, it will return a set, use loop from 1 . Switch to that window and close.

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

      @@letcode Thanks koushik

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

      Welcome bro 😁

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

    @kowshik bro how is ur health now ?

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

      I'm good now, thank you ☺️

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

    bro close aana parent window epdi marumadiyum open panradu?

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

    bro i have an issue that is "index out of bounds exception" now what to do?

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

      Once u get the window handles add it to the list correctly

  • @vino9997
    @vino9997 2 года назад +2

    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
      @letcode  2 года назад +1

      Bro u didn't get it ?

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

      @@letcode yes i do bro, i forgot to delete the comment..

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

      @@vino9997 no issues bro, happy learning ☺️

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

      @@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..

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

      @@vino9997 awesome bro ☺️

  • @ROCKY-pb3pg
    @ROCKY-pb3pg Год назад +1

    bro I have one doubt bro , how to contact u bro

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

      U can ask here, or join our discord.
      hey come check out Discord with me discord.gg/2bTyF7gR

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

    Bro ,How to retain the closed parent window to access the multi window ?

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

      Didn't get u bro

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

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

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

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

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

      @@letcode epo parent and child window close panitu
      Parent window poga epadi code pananum
      Antha functionha code pani kaatunga bro

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

      Close panna poga mudiyadhu bro

  • @SanjeevKumar-wj4we
    @SanjeevKumar-wj4we Год назад +1

    Bro open 5 tabs close 1st 2 tabs then last 2tabs

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

    Bro,I am able to switch but unable to perform operations on the child window

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

    Amazon multi tab eppadi open panradhu

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

    @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

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

      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.

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

      @@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.

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

    Bro source code epadi panuniga

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

      Angular bro 😊

  • @kbharathotk
    @kbharathotk 9 месяцев назад +1

    List.get() is not listing for me bro

    • @letcode
      @letcode  9 месяцев назад

      Import list from Java . Util

    • @kbharathotk
      @kbharathotk 9 месяцев назад +1

      @@letcode thank u bro.. U r doing a great job

    • @letcode
      @letcode  9 месяцев назад

      Welcome 😊