Page Object Model (POM) Design With Selenium - Part -4

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

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

  • @meghasandesam
    @meghasandesam 5 ปีที่แล้ว +29

    Dear Naveen you are doing amazing job and your tutorials are awesome. I purchased Selenium and Selenium FW, but this is excellent. You covered many things. You are doing lot of things for us, we have to do atleast one thing to you..that is to get the job, and do good work in selenium and Proudly say we are : NAVEEN ARMY.

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

      Thanks VB. :) GOOD LUCK

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

      @@naveenautomationlabs Thanks our Virtual Guru..!!!

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

      Hi @Naveen AutomationLabs I used your code in my framework but I am getting issue in "takeScreenshotAtEndOfTest" method and it is telling 👉 Cannot make a static reference to the non-static method copyFile(File, File ) from the type FileUtils. Can you please help me how to solve. I used your WebEventListener class code.

    • @real_hello_kitty
      @real_hello_kitty 4 ปีที่แล้ว

      ❤️💝💚💖

    • @kaushalshah4923
      @kaushalshah4923 4 ปีที่แล้ว

      @@rajeevpandey3638 - I am also getting the same error. Did you found the solution to it? please let me know. Thanks.

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

    Everyone is praising quality content concepts here there no any doubt on it but also look at the time boss.. 2:30 AM the amount of dedication reflects from it. Really this kind of dedication and intrest is required to achieve anything.. Then Nobody can stop you..

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

    Naveen, u have made this video at 3am IST and am watching at 2am CST! ur videos are so addictive, from last 3 days binge watching and developing FW! damn happy to find u!

  • @shruthiAlways02
    @shruthiAlways02 5 ปีที่แล้ว +4

    Thank you so much naveen.. I became addicted to your videos.. even if I get 30mins also, I feel like learning something from your videos.. Great Job.. thanks a ton..

  • @vishal98492
    @vishal98492 5 ปีที่แล้ว +4

    Thanks Naveen for wonderful tutorial...I got placed in oracle it is all your efforts which make clarity in my concepts

  • @omkarbyale
    @omkarbyale 4 ปีที่แล้ว +2

    Thank you Naveen Sir it's really helping me a lot...
    It will be more helpful if you share any Fresher Automation Openings...
    Thank you

  • @ajayshehrawat5430
    @ajayshehrawat5430 5 ปีที่แล้ว +4

    Its awesome naveen. I have learned lots of things from here which are very useful for me. Thanks a lot.

  • @Deepaksharma-bt6vq
    @Deepaksharma-bt6vq 5 ปีที่แล้ว +5

    Amazing learning experience. You are the perfectionist of Selenium Automation.

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

    Naveen really appreciate your efforts for creating the video at 3:23 am in the night. Your videos are really helping everybody.

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

    Tq naveen...itz amazing ....

  • @nitingupta82
    @nitingupta82 6 ปีที่แล้ว +2

    Loved It!! Thank You Very Much For Your Help! Really Appreciate Your Efforts! I Had No Clue Data-Driven Approach Would Be That Bid Tad Simple!! Thank You Once Again, Naveen!! :)

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

    U ARE THE BEST !! Thank you so much .U are my online guru 🙏🏻🙏🏻🙏🏻🙏🏻

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

    Naveen, I have many doubts on these topics..... WOW...... Now I am clear. Thank you for your video. Plz post interesting topics like this.... Thank you So much.....

  • @pallavisharma7300
    @pallavisharma7300 5 ปีที่แล้ว +4

    thank you is not enough :-) what an explanation

  • @murugavel1111
    @murugavel1111 5 ปีที่แล้ว +2

    Hello Naveen,
    Thank you so much for all your effort and creating these amazing videos. I'm now able to start automating applications on my own after going through the series of your step by step tutorials. One question I have is you said Keyword driven is not a good concept and would involve complex maintenance work. Could you please elaborate on that when you get time as few of the companies owned framework are all keyword driven. Thanks much.

  • @srimathijanakiraman4021
    @srimathijanakiraman4021 6 ปีที่แล้ว +2

    Great Work Naveen Sir! Thank you for detailed explanations. As a beginner to Selenium, I am Learning from your TH-cam videos in more understandable way. Thanks a lot for your efforts.

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

    Hi Naveen,
    I know you have heard from many of us how amazing you are and I share the same opinion. I sure do appreciate your knowledge and the heart of Gold that God gave you so that you are able to share this much. Be Blessed abundantly and keep on sharing!!

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

    I wish I could have an option to like this video as many times I want 👍👍. I was exactly looking for this. Thanks a lot Naveen. Really appreciate your efforts in making these videos🙂. Thanku so so much😊😊.

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

    Sir,Greatly impressed by your POM design.Just wanna ask how to handle NoSuchSessionException as the freecrm ui has changed.Facing this issue mainly while reading data from excel file.Please help

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

    You are simply amazing Naveen. Very precise and systematic framework you worked for us late night. You are handwork will be paid off in any way. Keep up the good work.

  • @LetsDoCrunches
    @LetsDoCrunches 5 ปีที่แล้ว +2

    Hi Naveen, Thank you so much to describe the concepts in such a way which is easily understandable.

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

    Lot of respect for you. No one can teach like you Naveen.Thanks a ton for the effort you put in to make us learn so well.God bless!!

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

    Naveen, you are a great teacher. Your way of explaining the things is amazing. Thank you very much for all your efforts.

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

    Brother your one one minute is very important. Can I add you on linkedin?

  • @upenderbamel6080
    @upenderbamel6080 5 ปีที่แล้ว +2

    Excellent !!! Nicely explained !!!Great Work Naveen Sir!!! Would like to Thank you for your effort and time!!! Really Appreciate !!!

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

    Naveen Sir! I like your content so much that every google account I have, with those I have subscribed to your channel. You deserve 2 billion subs :)

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

    Excellent Framework made by Naveen and he knows how to explain clearly all the difficult stuffs. I bought some frameworks from others, but his framework is most easily explained and systematic. He knows how to teach. Wish him a good luck. Thank you.

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

    Hey Naveen, I am so loving these POM vids , just that the utility you have created, please explain the code, that explanation is missing and is kinda high level and in bits and pieces. Finding it hard to understand the excel utility code;the object Arrays and stuff, finding it a little hard to digest .I know you have asked us to refer data provider videos separately but in those videos also the utility is just explained high level.
    I know you are really busy in all that you do but seriously would really love if you could spare sometime for all of us and create an in-depth video explaining the excel utility even though you mentioned won't be asked in interview.
    It'd be really like an icing on the cake. The videos are soo perfect that I 'm getting addicted and the hunger is not satiated until I get a full picture.See.. you spoiled me..lol . But yeah bro, just wanted to give a loud shout out to your spirit and awesomeness in creating these jems. We all love you for this.Just keep bringing these on bro.You are a selenium rockStar no less than IronMaiden :-)

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

    Thank you for wonderful tutorials. Question- Why did you not create NewContactPage page layer separate file? In fact you merged with existing contact page. How does this fall under POM design pattern?

  • @RAJEEVBU
    @RAJEEVBU 5 ปีที่แล้ว

    Hi Naveen,
    I have taken your code from git but it is skipping all the test cases with below on console:
    ===============================================
    FREE CRM Application Test Automation Test Suite
    Total tests run: 6, Failures: 0, Skips: 6
    Configuration Failures: 2, Skips: 4
    ===============================================
    Please could you let me know whats the issue here as I am getting the same when I implemented the same in my test cases.
    I have commented below lines from code & it seems to be working fine:
    /*driver.manage().window().maximize();*/
    /*driver.manage().timeouts().pageLoadTimeout(CommonUtils.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS);*/
    Are these methods not supported by WebDriverEventListener/EventFiringWebDriver ?

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

    Thank You Naveen.. U r my selenium Guru.. I have one doubt on data provider part..Doubt : You have added 4 columns for New Contact in Contact sheet n we have to use four columns mandatory while passing the parameter. Lets in 2nd test case we need some more test input data in same contact page. Do we need to create another sheet or can we add additional columns over the same sheet.If yes how we can handle the input data according to the test case requiremment ?

  • @Imrankhan-xw4me
    @Imrankhan-xw4me 3 ปีที่แล้ว

    hi Naveen, I am following the same approach. But, I am getting the below exception when I implemented dataprovider,
    Cannot invoke "org.openqa.selenium.JavascriptExecutor.executeScript(String, Object[])" because "com.em.qa.utils.TestUtil.js" is null
    java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.JavascriptExecutor.executeScript(String, Object[])" because "com.em.qa.utils.TestUtil.js" is null
    How do I resolve this?

  • @shobhak1910
    @shobhak1910 6 ปีที่แล้ว +2

    Thankyou soo much for Amazing videos Naveen.

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

    I am learning soo many things from you Naveen, no words to describe. Thanks for sharing your knowledge .

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

    Hi Naveen, amazing learning experience. I took your tutorials as a refresher course to prepare for interview but learned a lot. Thanks for that. I have a small doubt. Now we have latest jars for POI right version 5. I have tried the same steps using poi 5, but its throwing error that method is not found and test case is ignored. Can you please help me with the dependencies for poi 5.0

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

    Hi Naveen, A big thanks for all these awesome videos. I wish good luck for all you do.
    Do you recommend any book along with these videos? Best Regards

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

    Thanks alot for sharing your knowledge with us, this is really helpful

  • @hashinpk9650
    @hashinpk9650 5 ปีที่แล้ว

    Hi Naveen,
    Can help to solve the below error...I am new to selenium learning
    I am getting the java null pointer exception
    Framework :- POM
    POM method
    public void draftopportunity()
    {
    driver.findElement(By.id("create-opportunity-save-button")).click();


    }
    @Test(priority=1)
    public void createdraftopportunity() {

    homepage.create_opportunity();
    createopportunity.draftopportunity();

    }

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

    Hi Naveen,
    Your videos are really helpful. But due to update in versions I am getting below error even if I follow the same steps explained in your video. If you or any help me on this really it will be helpful for me. Thanks.
    Error facing:
    ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
    [Utils] [ERROR] [Error] java.lang.NullPointerException: Cannot invoke "Object.toString()" because the return value of "org.apache.poi.ss.usermodel.Row.getCell(int)" is null

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

    Hi Naveen, I have been following your selenium videos from past few weeks. They are really good and way better than many other similar videos in utube and books. Thanks a ton for sharing this precious knowledge.

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

    Hi Naveen, EventFiringWebDriver is coming depreciated. Can you add the new alternative for this implementation. Thanks for your amazing work !

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

    Hi Naveen, why are you creating new utility for reading data. Because you already created xls_reader utility right?
    How can we use that utility here?

  • @KhushiKrupa
    @KhushiKrupa 4 ปีที่แล้ว

    Hi Naveen, How to handle the entering of numeric values in your data driven framework. For example contact page zip code entered as "560087.0" and phone number as "9E87654.00" using your testutil data provider. How to handle these cases (numeric cell values).

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

    Hi Naveen,
    In Selenium 4 EventFiringWebDriver is deprecated. Any other alternative for this? please help.
    Thanks,
    Sarath

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

    Hi Naveen, I was able to automate my project with POM approach and data driven framework just following your videos, you are amazing, god bless.

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

    Hi Naveen one question is in my mind.
    Like using dataprovider we created 3 records in contacts page.
    But later if we want to create more record (contacts) then what can we add that.
    beacuse if we add more records in the excel sheet then the pervious data will add
    again in the contact list.
    Can anyone clarify my doubt?

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

    the EventDriver and EventListener are showing as NULL in BastTest. I am using POM without PageFactory. Is this expected?

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

    HI Naveen, Thank you so much for videos!
    EventFiringWebDriver is not getting triggered i am getting the same default logs.What should i do?
    thank you in advance

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

    Hi Naveen, thank you so much for the valube videos . In my compny UI all thedrop down has value in checkbox. so how I handle this? please help me. give me any suggession.🙏

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

    Hi Naveen, I have a question. Will Selenium with Java have a good scope in QA Market in Future as well? Would they have a good scope

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

    Very important session and concepts shared in this video. Thanks a Lot Naveen. 5 stars out of 5 stars for your effort. (:

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

    Awesome Naveen sir, I am getting a warning on "EventFiringWebDriver" class for "Add @suppress warning 'deprecation' to 'initialisation' " what does it means and how to resolve it ?

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

    Awesome Naveen such agreat help you are doing to the people who wanted to learn advanced selenium

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

    No words for this. Hats off to your efforts 👏 best framework design tutorial i have ever seen.

  • @sparshpandey2878
    @sparshpandey2878 6 ปีที่แล้ว

    Hi Naveen Sir , These are really brilliant and recommended videos to start with. I had a doubt on the 'ContactsPageTest' -> The Last line of @BeforeMethod is "contactpage = homepage.clickonContactsLink();" , that means it will click on the 'Contacts' link of the Homepage. Now my Question is if you are clicking on the 'Contacts' link first then how @Test(priority=4) is working. I mean in the @Test(priority=4), One has to hover on the 'Contacts' link and select 'New Contact' but if in the code - We are clicking on the 'Contacts' link first instead of hovering on it then how it is working. ? Please someone clear my doubt. Much appreciated , Thanks in advance !

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

      I am also facing the same issue. I commented that line in @BeforeMethod, only then my @Test(priority=4) is working fine. @naveen, could you please help us with this issue.

  • @user-yb2fc1ur6g
    @user-yb2fc1ur6g 3 ปีที่แล้ว +1

    Thanks a lot Naveen for providing all the wonderful sessions !!!

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

    just loved it

  • @RohitKumar-hr7po
    @RohitKumar-hr7po 2 ปีที่แล้ว

    Hi sir, i am facing issue while using 'WebDriverEvenListener' interface in WebEventListener class as deprecated. please give solution for that.

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

    Hi Naveen! Can you please suggest how to deal with online excel file? ms-office or any such software installation is not permitted from client side.

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

      Online excel can not be automated using POI api. YOu need to use Google Sheet APIs to interact with google sheets.

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

      @@naveenautomationlabs Thanks for prompt reply. Is there any reference or mock up I can see and use? If i replace POI jars with this ----- >
      com.google.gdata
      core
      1.47.1
      Will it work keeping rest of the code same as in your video?

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

      Tried this also ---->
      com.google.apis
      google-api-services-sheets
      v4-rev612-1.25.0
      But, not working..Please suggest and also coding changes if required.

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

    Hi naveen i got ElementNotInteractableException when mouse hover on contacts and try to click newContactsLink

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

    For getting a better understanding regarding a testing framework i went through many tutorials, but i never ever get this much confidence and self sanctification util see yours. You have explained everything in detail, even our colleagues/friends do`t :P
    Sharing your knowledge and effort for free that`s the best part about your tutorials!!
    Thank You

  • @g.mrafed669
    @g.mrafed669 3 ปีที่แล้ว

    Very informative.I watch the video and I learnt a lot.Sir need to talk to you regarding QA tutorials.Thanks

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

    Hi Naveen i have try this framework design but i was unable to perofrm @ data provider it will give this error : Data Provider public java.lang.Object testcase.ContactPageTest.GetTestData() must return either Object[][] or Iterator[], not class java.lang.Object

    • @satheeshsathi8857
      @satheeshsathi8857 5 ปีที่แล้ว

      Hai, I think you put on the @Data provide concept, you use void, please remove void, then return object[][]

  • @pradyumnnasatapathy8199
    @pradyumnnasatapathy8199 6 ปีที่แล้ว +4

    Appreciate Sir ... for making this video in 3 AM night.. But can I know that the Webfire event has some template or I can create it as my wish.

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

      +Pradyumnna Satapathy you can create ur own template but make sure don't change the method name.

    • @thespeakingshutter8302
      @thespeakingshutter8302 4 ปีที่แล้ว

      ​@@naveenautomationlabs Thanks a ton for sharing your knowledge. It would be great if you could take a separate session on explaining the Webdriver Fireevent mechanism in detail. I understand we are implementing Interface but would be great if you could explain 50:25 part in detail, how all those 4 lines work and the mechanism

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

    Hi Naveen, Could you please remake this tutorial video with Selenium 4. Thanks!

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

    Hi Naveen, the WebEventListener code isn't working as of today since lot of the methods have been deprecated. Could you please share the latest code for this class ?

  • @RahulTiwari-em8go
    @RahulTiwari-em8go 4 ปีที่แล้ว

    Sir in this video while explaining the data driven , you did not explained mentioned Workbook and Sheet variable that you defined , i am trying to create but its not allowing me. just want to ask where did you specifies those......

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

    Hi Naveen Sir, I think your website’s certificate is expired. could you please fix it. I am not able to open it.

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

    I never see a person who explained data driven approach this much simple , excellent video

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

    Is EventFiringWebDriver changed to EventFiringDecorator?

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

    How can I reach you naveen? Need to ask very imp ques for a job position im applying to.

  • @mr.mksharma
    @mr.mksharma 3 ปีที่แล้ว

    Hi naveen , I am facing an error tried all possible way but couldn't solve, so can I drop a mail with my project attached. Issue is regarding g above topic .

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

    Great session, fantastically explained, Thanks Naveen for sharing your experience on Automation framework.

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

    will this work on POM without PageFactory implementation?

  • @r.swetha127
    @r.swetha127 ปีที่แล้ว

    Without pagefactor ku video podunga sir

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

    Dataprovider is accessing the data from excel,dont we need to add apachePOI dependency on to the project.??

  • @harshsoni2816
    @harshsoni2816 5 ปีที่แล้ว +2

    Excellent work yaar.. Maja aa gayaa

  • @deekshasharma9442
    @deekshasharma9442 9 หลายเดือนก่อน

    @Naveen , WebDriverEventListener are not present currently in selenium . Do we have any other alternative to get this approach?

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

    Naveen your way of explaining is very good. You are great you are creating video at 3AM.

  • @arjun6801
    @arjun6801 6 ปีที่แล้ว +2

    Hi Naveen.... Your way of explanation about POM is very effective. I am trying to automate one application. But when I use Dataprovider annotation am getting an error while importing the file(book = WorkbookFactory.create(file);), in the TestUtil. I am not able to import the WorkbookFactory. How to rectify this? Please help me on this.

    • @ngogo9070
      @ngogo9070 5 ปีที่แล้ว

      Hi Vasavi, I am getting the same error, have you managed to solved the error?

    • @harishbhat1406
      @harishbhat1406 5 ปีที่แล้ว

      Use correct versions of jar files for Apache poi and poi ooxml. Even I faced same issue.

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

    Hi Naveen,
    Why the window is not maximizing? I believe u have written the code for same.

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

    Hi, Naveen can u please let me know how to log in to freecrm. I am unable to land on the home page after login using yr credentials and the register is differnt too? Need help. Thankyou

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

    naveen you really god job....I have done same coding as you but bit in new contacts link its not clicking ...i did the code same as you step by step...i utilize my 2 days on it ..

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

    There are no words to thank this man. Naveen Sir you are great!

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

    Sir how to link the app.log file to even listener??

  • @gauharabbas
    @gauharabbas 9 หลายเดือนก่อน

    How can i use excel sheet in data driven testing for Login page, can this login page function and data provider annotation be called on other pages also while running other page, for example while executing new contact page can i use login page data povider annotation and functions on this page or i need to write login page script again on this page also.

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

    Amazing!!

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

    Hi Naveen,
    I am following your tutorials and its great. The way of explaination is complete professional.
    I wanna ask one thing I am also using @Test(priority = 3, dataprovider = "getData")
    but problem is that this Test annotation is skipped when I run test suite while all other are running with priotity = 1, 2 , 4
    If you can ans this.

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

    Thanks Naveen for such a good session on Framework designing ,It helps a lot in facing interviews as well as day to day work.

  • @ranjeetsinghchouhan2634
    @ranjeetsinghchouhan2634 4 ปีที่แล้ว

    I have one Column named "Account Number" that contains 10 digit numeric values (e.g. 9876543210 ). now when i read this value from excel file it gives me like "9.876543210E9".

    • @ranjeetsinghchouhan2634
      @ranjeetsinghchouhan2634 4 ปีที่แล้ว

      what need to be change to get the correct numeric value from excel?..please help asap..
      Thanks,
      Rancho

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

    Hi Naveen,
    I am getting NPL in username.sendkeys(un) line. Please help me understand

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

    Hi Naveen and all,
    I am not sure if I really understood how the WebDriverEventListener is actually working. I took the code which Naveen has explained but wanted to understand what goes under the hood. For example, these two methods which is implemented in WebEvenListener custom class (This class is implementing the WebDriverEventListener interface) -
    public void beforeClickOn(WebElement element, WebDriver driver) {
    System.out.println("Trying to click on: " + element.toString());
    }
    public void afterClickOn(WebElement element, WebDriver driver) {
    System.out.println("Clicked on: " + element.toString());
    }
    So when I run my script, what basically it does is that the first method gets executed before clicking on any webelement, whereas the 2nd one gets executed after the element is clicked.
    Now my question is, if you see, both these methods have same argument & same type but they are executing in the flow where it should. How does these method know which one to execute at what step? Why isnt the method "afterClickOn(WebElement element, WebDriver driver)" gets executed before the click event and the other method after the click event? I dont see any logic that derives. Any pointer pls.

  • @smuralidharan24
    @smuralidharan24 5 ปีที่แล้ว

    Hi Naveen,
    This is a wonderful work that you are doing. Keep going my friend.
    Sharing that something I figured out while practising your video's.
    On the takeScreenshotAtEndOfTest() method. if anyone is using latest selenium and latest Apachi POI version you might get a compilation error.
    The solution would be, you can use
    FileUtils.getFileUtils().copyFile(scrFile,
    new File(currentDir + "/screenshots/" + System.currentTimeMillis() + ".png"));
    instead of
    FileUtils.copyFile(scrFile, new File(currentDir + /screenshots/" +
    // System.currentTimeMillis() + ".png"));
    and the import would be "import org.apache.tools.ant.util.FileUtils;"
    Alternate option is you can still run the code if you add this dependency to pom.xml


    org.apache.directory.studio
    org.apache.commons.io
    2.4
    Hope this helps.

  • @FitnessForAll
    @FitnessForAll 5 ปีที่แล้ว

    Hi @Naveen I am getting below error in this code line --> e_driver.register(eventListener);
    Error messages ->> The method register(WebDriverEventListener) in the type EventFiringWebDriver is not applicable for the arguments (EventFiringWebDriver)
    Could you please look into this and let me know the possible solution for this.

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 6 หลายเดือนก่อน

    Thanks for your work, Naveen! Well done!

  • @kaushalshah4923
    @kaushalshah4923 4 ปีที่แล้ว

    Hi @Naveen - I used your code in my framework but I am getting issue in "takeScreenshotAtEndOfTest" method and it is telling I Cannot make a static reference to the non-static method copyFile(File, File ) from the type FileUtils. Can you please help me how to solve. I used your WebEventListener class code

  • @joaobaganha7099
    @joaobaganha7099 6 ปีที่แล้ว

    Workbook cannot be resolved to a type
    The type org.apache.poi.poifs.filesystem.POIFSFileSystem cannot be resolved. It is indirectly referenced from required .class files
    The type org.apache.poi.poifs.filesystem.NPOIFSFileSystem cannot be resolved. It is indirectly referenced from required .class files
    The method create(InputStream) from the type WorkbookFactory refers to the missing type Workbook
    Sheet cannot be resolved to a type
    Workbook cannot be resolved to a type

  • @vikranthsanka6000
    @vikranthsanka6000 5 ปีที่แล้ว

    can somebody please clarify
    after watching all the videos in the page object model playlist...my my understanding regarding the execution flow is as below...
    TestNG.xml(triggering file) triggers any test class(based on testng.xml file) which internally utilizes pageFactory class and TestBase class... is my understanding correct?
    I believe each test file has a main method bit the pageFactory files and Test files doesn't have any main method....is my understanding correct?
    TIA

  • @aliridhohabsyi1242
    @aliridhohabsyi1242 5 ปีที่แล้ว

    Hi Naveen
    I have one question about using @DataProvider.
    How to make the opening of browser(all test in one browser) using the DataProvider ???
    because it open the new browser from every row in excel (3 row = 3 opening new browser).
    Please help. Thanks

  • @ankitathakur1930
    @ankitathakur1930 4 ปีที่แล้ว

    First of all thank u for the wonderful videos....I have one question sir, In Page object model, we use @FindBy for identifying any webelement...rite? But in ur videos u r using driver.findelement(by.xpath())...I am confused.