Calendar Handling in Selenium WebDriver | Write Generic Method for Calendar - Date Picker

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.พ. 2021
  • In this video, I have explained how to write Generic Method for Date Calendar using Selenium.
    Calendar Handling in Selenium WebDriver | Write Generic Method for Calendar - Date Picker
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    th-cam.com/users/Naveen%20Au...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/COJqZUPB02r5sB7...
    Naveen AutomationLabs Paid Courses:
    Java & Selenium:
    naveenautomationlabs.com/manua...
    Java & API +POSTMAN + RestAssured + HttpClient:
    naveenautomationlabs.com/selen...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 86

  • @aryanaboyaryayeenezhad7295
    @aryanaboyaryayeenezhad7295 8 หลายเดือนก่อน +2

    Thank you @Naveen brother for the great work. You are so committed to your followers and Automation channel folks. Appreciate it!!!

  • @sanghamitrabhowmicklive3013
    @sanghamitrabhowmicklive3013 3 ปีที่แล้ว +2

    Amazing logic..I was struggling with calenders for quite sometime.. thanks a lot!!!

  • @kailaspoduval
    @kailaspoduval 3 ปีที่แล้ว +3

    Crisp and simple explanation 👌..awaiting for your next efforts..thanks a lot Naveen ji🙂

  • @satishkvs156
    @satishkvs156 3 ปีที่แล้ว +1

    Thank you so much Sir, Good explanation

  • @monalisapanda7825
    @monalisapanda7825 2 ปีที่แล้ว +1

    Thanks lot Naveen.Very well explaned

  • @sandeepkokane9549
    @sandeepkokane9549 3 ปีที่แล้ว +1

    Thanks Naveen. Nice explanation 👍

  • @luckyraj6206
    @luckyraj6206 3 ปีที่แล้ว +1

    Hey Naveen bro firstly Thankyou so much and as u said I have completed the assignment using goibibo and it's working with ur method and successful. ##keep smiling and share more & more 😊

  • @vikaspawar3395
    @vikaspawar3395 ปีที่แล้ว

    Nice Explanation Naveen, Really helpful. Thanks!

  • @Anastasia-bo1uc
    @Anastasia-bo1uc 3 ปีที่แล้ว +2

    Great explanation 👌 👍

  • @AMNUSA
    @AMNUSA 3 ปีที่แล้ว

    Thanks a lot

  • @nidhipriya2068
    @nidhipriya2068 3 ปีที่แล้ว

    Thanku :). you are the best

  • @monikagatkal9023
    @monikagatkal9023 2 ปีที่แล้ว +1

    thank u for teaching

  • @aswinivenkatesh605
    @aswinivenkatesh605 3 ปีที่แล้ว

    Good explanation. Thanks

  • @ilavarasansriraman4140
    @ilavarasansriraman4140 3 ปีที่แล้ว +1

    Thanks naveen sir

  • @luckyraj6206
    @luckyraj6206 3 ปีที่แล้ว +1

    Awesome👏

  • @varshamishra8743
    @varshamishra8743 2 ปีที่แล้ว +1

    Awesome Sir 👏👍😊

  • @jyotiwagh5840
    @jyotiwagh5840 2 ปีที่แล้ว

    Awesome explanation 👍

  • @shivamraut113
    @shivamraut113 3 ปีที่แล้ว +2

    One more concept added to the playlist😇.Thanks Naveen Sir

  • @SarangHoley
    @SarangHoley 3 ปีที่แล้ว +1

    Very sorted logic where all possible conditions tested 👍, now we can create a backdate selector logic after watching this 😊

    • @mohanreddymadem2683
      @mohanreddymadem2683 ปีที่แล้ว

      Hi bro,
      Can you help me how to select back date with this logic

  • @aparnamane1905
    @aparnamane1905 3 ปีที่แล้ว

    Nice Naveen for career future,.U are amazing person to teach small small things all of us..Thank you so much for career guidance 👍

  • @adityakaushik8278
    @adityakaushik8278 3 ปีที่แล้ว +3

    Thanks alot naveen sir.just one doubt, what if this calendar is of DOB and user wants to select sometimes past sometimes future dates dynamically?
    Great explanation sir. Thanks.
    Please reply.

  • @Suhas902
    @Suhas902 3 ปีที่แล้ว +1

    Naveen, Yesterday saw this video and today got the same assignment in my project!! It worked!! Thanks a lot ☺️

  • @Tvs615
    @Tvs615 3 ปีที่แล้ว +1

    Hi, Naveen Awesome Explanation .I have small question I performed this for previous month but only one month back can we use same Generic Logic for previous date ,month, year. Thanks in advance.

  • @ambikaswain9084
    @ambikaswain9084 3 ปีที่แล้ว +1

    Thanks

  • @sanjucricketpredictor4649
    @sanjucricketpredictor4649 3 ปีที่แล้ว

    Hi naveen . which is better to worthy learn python selenium or java selenium.give me advice because I am not from coding background means I am mechanical engineer.

  • @akonsantosh
    @akonsantosh 3 ปีที่แล้ว +2

    You are my guru ji ❤️

  • @muaazster
    @muaazster 2 ปีที่แล้ว

    Epic , ,,,,

  • @KkdvPrasad
    @KkdvPrasad 3 ปีที่แล้ว +1

    Awesome and Simple

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว

      Keep learning

    • @KkdvPrasad
      @KkdvPrasad 3 ปีที่แล้ว

      @@naveenautomationlabs
      I have an issue with Json dependency which I used to automate Gmail API from your video I started working on it, How should I resolve this issue, please suggest

  • @049_mihirmodi9
    @049_mihirmodi9 2 ปีที่แล้ว

    Hi Naveen sir , how can we select date as 3 & 03 from calendar.

  • @jayantamandal9732
    @jayantamandal9732 3 ปีที่แล้ว +4

    Thanks a lot Naveen -Great to learn how to handle calendar handling with corner cases. How to handle the past date?

    • @raginipatel484
      @raginipatel484 3 ปีที่แล้ว

      This is really a good question. @Naveen : Could please throw some light on it ? How to handle past date ?

    • @prajwalkore375
      @prajwalkore375 3 ปีที่แล้ว

      Say we don't want someone to select past date ,I mean today is 2 march and u don't want someone to select march 1 and lesser dates, then we can build below logic to compare current date and date given by user
      Format formatter = new SimpleDateFormat("dd-MMMM-yy");
      Which ll give date in this format 02-March-2021
      And we have to construct Date object using user input using string to date formatter,using same date month format then compare them using todaysDate.isAfter(dateGivenByUser) this ll return true if user has given past date so we can add logical condition to skip our execution
      NOTE:- I didn't execute this logic ,open for suggestions if am wrong somewhere and I ll be posting my findings after execution

  • @learnmoremuchandiona2759
    @learnmoremuchandiona2759 2 ปีที่แล้ว

    Thanks for this. Please assist, am getting an error with the new WebDriverWait instantiation: the error says, constructor WebDriverWait is undefined. I have done the import

  • @archana09424
    @archana09424 3 ปีที่แล้ว +3

    Thank you Naveen for another wholesome learning.
    I am the first one to comment 😊

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว +1

      My pleasure 😊

    • @allindia2837
      @allindia2837 3 ปีที่แล้ว

      @@naveenautomationlabs naveen sir I want to learn selenium with java please help me out as I am non tech baground

  • @mayurkhobragade4291
    @mayurkhobragade4291 3 ปีที่แล้ว

    Awesome content!!!
    Naveen can u please share the video of How to explain Cucumber in interview!!!

  • @mohankona5432
    @mohankona5432 3 ปีที่แล้ว +1

    Naveen, I guess, we can directly use sendkeys to that element(since it has an input HTML tag) by sending the text in the required date format. What's your take on this?

    • @naveenautomationlabs
      @naveenautomationlabs  3 ปีที่แล้ว +2

      It's not always true with all the calendars. This is just a demo site where it's allowed.

    • @vishnuvlog8030
      @vishnuvlog8030 ปีที่แล้ว +1

      And that is not correct approach where you can directly used send keys. It will get failed with most of the calender date pickers.

  • @akashkulkarni4068
    @akashkulkarni4068 3 ปีที่แล้ว

    Hey Naveen sir, telegram invite link mentioned in description is expired. Can you update it ?

  • @rexpraveenbrittox2620
    @rexpraveenbrittox2620 2 ปีที่แล้ว

    Hi Naveen, Nice video but i have one doubt for this logic
    it would fail if pass date - '31 June 2022' or '31 November 2022'

  • @velun4047
    @velun4047 3 ปีที่แล้ว +1

    Nicely explained... how to select past date?
    Want to write another condition with prev click and given date less than current month than ll go for prev click else next click?

  • @sainagakumaraswamy3580
    @sainagakumaraswamy3580 2 หลายเดือนก่อน

    Naveen, What if I want to select a date from past year.

  • @David-bl1xr
    @David-bl1xr ปีที่แล้ว +1

    This was really helpful

  • @Siva-xq1qd
    @Siva-xq1qd 3 ปีที่แล้ว

    Could you please do a video about calendar. previous month or find out after exact 15 days from current date and select particular date and ensure rest of 14 days are disabled.

  • @praveenpg519
    @praveenpg519 3 ปีที่แล้ว

    Naveen please show how to sort date accending to descending and vice versa

  • @sutharsansadhasivam2401
    @sutharsansadhasivam2401 3 ปีที่แล้ว +1

    Hi Naveen, can you please checkin this code in your Git repo

  • @talha9308
    @talha9308 3 ปีที่แล้ว

    What if month and year are in drop-down,
    Which approach I should use, please suggest.

    • @vishnuvlog8030
      @vishnuvlog8030 ปีที่แล้ว

      Use for loop because we have list of dates and use string date passed ....hope this will ur answer

  • @rajatsrivastava2838
    @rajatsrivastava2838 2 ปีที่แล้ว

    Hi Naveen , thanks for this video...but I have a different issue.



    Here when its type="date" , it open a datepicker, where I am unable to set any date. Please help me on that..

  • @sbiltest5632
    @sbiltest5632 3 ปีที่แล้ว

    Having problem to launch url on IE browser

  • @user-ey1es3of5k
    @user-ey1es3of5k 7 หลายเดือนก่อน

    Sir, It is not working when we enter any past year from the current year. please help how to handle it when user want to select any past year.

  • @atulgupta9202
    @atulgupta9202 3 ปีที่แล้ว +1

    Awesome

  • @sbiltest5632
    @sbiltest5632 3 ปีที่แล้ว

    IE browser is launched successfully, driver.get("url") is done, but application is not displayed,

  • @rathik.k
    @rathik.k ปีที่แล้ว

    Hai! Naveen. Here, How to check current date is highlight as well yesterday date is disabled

  • @shoshKid
    @shoshKid 11 หลายเดือนก่อน

    Great work, Naveen, thanks a lot for this. Just one scenario that you didn't cover though. What if I select 31st for September or June etc? Those months only have 30 days, not 31. Thanks a lot

    • @abhaypaul6448
      @abhaypaul6448 5 หลายเดือนก่อน

      That will be handled by the catch block in while loop. I also thought about this condition.

  • @navyaravi1082
    @navyaravi1082 3 ปีที่แล้ว

    Can you pls upload gradle videos..

  • @phanikumars
    @phanikumars 3 ปีที่แล้ว +1

    What if the date is precious year?

  • @parasjoshi5509
    @parasjoshi5509 3 ปีที่แล้ว +1

    null pointer exception is coming , while using the generic method in testng

    • @darshan2273
      @darshan2273 ปีที่แล้ว

      Ss same problem...
      Can u pls help me..

  • @reshmap360
    @reshmap360 3 ปีที่แล้ว

    Can you send the telegram link.It looks expired.

  • @kiranhasule5424
    @kiranhasule5424 ปีที่แล้ว

    Naveen alcan I get full code of this lecture

  • @ilavarasansriraman4140
    @ilavarasansriraman4140 3 ปีที่แล้ว +2

    Github link for this code?

  • @vadlakondaanusha3958
    @vadlakondaanusha3958 2 ปีที่แล้ว

    Getting error at expected conditions what should I do

  • @govardhanakj1038
    @govardhanakj1038 2 ปีที่แล้ว +1

    How do we handle previous year calendar values (In case of providing Date of birth details).
    Example DOB : 07-02-1989
    Current calendar by default shows the current date, so I need to keep clicking on prev button and start comparing both year and month.
    Is there a generic way to handle this condition please let me know

    • @vishnuvlog8030
      @vishnuvlog8030 ปีที่แล้ว +1

      Here we used next button , instead of this you have to click back button and everything same just string pass past days. Hope this will work

    • @kapilmalik5212
      @kapilmalik5212 8 หลายเดือนก่อน

      Thanks buddy@@vishnuvlog8030

  • @surajgoenka
    @surajgoenka 3 ปีที่แล้ว

    Can we do like this
    1 Get the current month and year from the calender.
    2. Then whatever the month or year we want to select just get the no. Of clicks by subtracting
    For example: Today is june 2021 and i want to select jan 2025 then i will just get the no. Of months between the present and the future.
    Then i will just pass the no. In the foe loop and there i will be clicking the next month calendar button
    Then i will click on the date i want
    This will be a lot faster

  • @surajgoenka
    @surajgoenka 3 ปีที่แล้ว

    Can't we just sendkeys inthe text box

  • @sathishDoppalapudiSats
    @sathishDoppalapudiSats 3 ปีที่แล้ว

    Myself Sathish and i am one of your followers and learned a lot from you.
    Reaching out to you on one of my recent issue:
    We have a website where I can manually login with my username and password. Then page is loading properly with all images and data and etc(exampe: Welcome Sathish in the page).
    Whereas if i am using selenium and python and doing the same thing, the page is not loading. images are not loading fully, and saying "{{Welcome, UserFirstName}}"
    Can you please let me know what are all the possibilities that could cause this issue?
    My Driver code is pretty simple :
    from selenium import webdriver
    driver = webdriver.Chrome(driver_location)
    driver.implicitly_wait(15)
    driver.maximize_window()
    driver.get(url)
    Appreciate your help!

  • @saayantaacharyyachoudhury4621
    @saayantaacharyyachoudhury4621 2 ปีที่แล้ว

    Your try-catch block will come into picture for input as 31 Jun 2022 as none of your if conditional blocks will be considered

  • @anitsarker4591
    @anitsarker4591 3 ปีที่แล้ว +1

    I am watching this on 16th June 😂😂

  • @hariharan6340
    @hariharan6340 ปีที่แล้ว

    Poda kisu muda it's difficult 😠😠😜😜