I am unemployed manual tester and they are not trainings here that give you the knowledge and prepare you for the career in automation, just learning from videos on RU-vid like yours. Actually most that I like are yours and I think I am advancing. Thank you
Thanks Mukesh for your detailed video. I have taken couple paid selenium courses but none was as clear as you explained. I really appreciate and value your time in making these free videos. Keep Rocking Champ :)
Hi Mukesh Thank you so much for this video. This is very helpful and you explained it very easy and clear way. Now I want to watch all your videos. Also, your english is very fluent and clear.
Hi Mukesh, I've been watching all your videos for quite a while. All of them are very informative and i've learned a lot from your videos. Kindly keep posting the videos like this. Thanks a lot for your help:-)
Hi Mukesh Ji,Thanks a lot for sharing this video with us.It was very informative(Please sharing the code created from this video,if possible,from Google Drive...or others).Please continue to share your experience.All the Best and MAY GOD BLESS YOU!!!.
Thanks Mukesh..Nice explanation..short and sweet.. I Would like to request you, Kindly make video to explain any one testing project with complete framework details at one time,
Good and Easy to understand. Passing parameters and return is little bit complex. so if could you create another video that could be more useful for Beginners
Sir finally I got output I recognized my mistake I made the code correctly then your assignment is little bit tough but still I didn't try I have no time to do your assignment but in future I shall do Sir thank you
Hi Mukesh. Could you pls explain in two words, what is the advatage of this factory pattern/model comparing to simple page object model? In current example it seems like this is just more complicated and does not increase readability and maintenability, comparing to POM...
Hi Mukesh, I am following all your vedios from the past few months.They are really well explained . I am looking forward for a live project to work on .Do u provide such live project training.if yes then please provide me the details.
This video helped me to clarify my thoughts on page factory. I wanted to know in the @test class could i create object as simply as LoginClassName objA ? and import the class and call my methods from LoginClassName by objA. ? That's what I was doing until now and things didn't go well but with creating object with pagefactory in @test showed from you a new way to approach it and it worked for me. Thank you.
Hi Mukesh, It was a nice explaination but i have some clarifiactions. 1.In LoginPageNew class, you defined parameterised constructor but you created object through PageFactory, is it same as new LoginPageNew(driver); ??. 2.In LoginPageNew class,you defined login_wordpress function whose return type is void but it should be the return type of next page class as of normal POM approach, isn't that true?
Hi Mukesh, LoginPageNew login = PageFoctory.initElements(driver,LoginPageNew.class) // It returns object of the given class LoginPageNew login = new LoginPageNew(); // Also returns object of the given class What is the difference between these two? Which one is preferable in Page Object Model? Thanks you!
Hii Mukesh ur superb the concept of POM now fully cleared but some extra things like how to use Loadable Component in POM can u pls elaborate it by creating a video...........pls help me out.
Hi Mukesh, This video is very useful for me to get start with POM. Could you please help me to understand what is the main differences bet ween normal approach and POM, in normal approach we will keep all the elements info in property file and we will call and use. What could be the main difference. Thanks.
Both are perfect but in OR every object in same file so searching element would be difficult. In Page object model we would be storing based on functionality so it makes our test robust.
Hi Mukesh, Thanks for the video. I need to ask a question that how i can run 2 test cases in series e.g I want to run Loginpage first and then postpage. I am not able to run the second test case because the user should be already logged in for 2nd case to run. Please help !!!!!!!!!
Hi Gaurav, You can use TestNG priorities (i..e in your case, for Loginpage set (priority=1), and for the post page set (priority =2) or you can use dependsOnMethods to prioritise your test cases.
HI Mukesh, Which is the widely used framework in the industry now a days Page object design pattern or Data driven? Can we combine both Data driven And POM together and can write a script. if we learn POM is enough? Am new to selenium Please suggest me. Thank you.
hi mukesh please upload one video on setting up keyword-driven framework.. i was following keyword driven framework from toolsqa but unfortunately that is difficult to understand and exception is coming related to reflection package "java.lang.reflect.InvocationTargetException". please do this...it will be very helpful for us. thanks :)
While using how class you have used the variable “using” ,what is the use of it and also we haven’t defined it anywhere in the code .Can you explain the need of using variable .
Hi Mukesh, is there any video which includes entire framework like POM page factory , Data driven using excel ,TestNG reports, Maven with jenkins. Need to see an end to end flow ? It would be helpful .
Hi Mukesh, why do we need a construtor in this example? (11.38). We are not using it anywhere in the class file. I tried without a constructor and it worked fine. Can you help please?
Hi Mukesh I hope you are doing good. My question is how to create test cases for login page in selenium, for example do i have to create separate test cases in a form of java file for valid credentials and invalid credentials etc. thanks for giving us great learning content. regards
Hi Mukesh, Thank you so much for explaining Page Factory. I did your assignment but one problem. It does not identify the text body element where you write your post, giving 'nosuchelementfoundexecption', all other elements are working fine. Can you help me on this?
Hi, Can we initialise PageFactory in LoginPage class constructor only? LoginPage(WebDriver driver) { PageFactory. initelements(driver, this); } In Test Case How we have to write assertion?
+Manjunath B.N Hi Manjunath, yes we can intiliaze in this way as well. For assert you can directly write assertEquals method. Check below post for more detail. learn-automation.com/capture-error-message-in-selenium/
Hi Nidhi I used the same step to make it work in MAC learn-automation.com/firefox-browser-on-mac-using-selenium-webdriver/ learn-automation.com/chrome-browser-on-mac-using-selenium/ We can also do the same thing in windows too using Env variables.
Hi Mukesh, My Bad .....I was referring to the Concept in the video at 15:30, where you check the browser type and then you assign the driver accordingly. So in case if the browser happens to be chrome , apart from assigning the WebDriver object driver as ChromeDriver, would we also need to do System.setpProperty (ChromeDriver," Path of the chromeDriver");.
Hi Mukesh I went through your course package at learn-automation. I know the basic stuffs of framework and know how to pass the value using hard coding, like you have explained in page factory. But now i want to explore more by using excel sheets to send data like start date and end date in two different calendars. Would your paid course help me on this ? Please let me know. Regards
Hi Mukesh, this was an excellent video learned alot thanks man,,,,, can you please explain how to include reading multiple set of data from Excel and pass it to loginPage in POM pageFactory Model, please guide me, thanks in advance ,,,
Hi Mukesh, I am little bit confused between '@FindBy(id="") and @FindBy(how=How.ID,using="")'. Which one is better to use. Can you please help me with the difference between these two?
Hello Mukesh bro you teach awesome. I have a small doubt, in page object model how to get TestData from excel file and use it in web application. I tried but i cannot figure it out kindly help me please.
Hello Mukesh, Thank you for making this video!! It's more than informative to say the least! It seems like you used something called firebug, I've heard about it, and I am watching this video in 2021. I cannot seem to find that plugin/extension in anywhere. Is it deprecated? or got rebranded or replaced by something else? can you please provide some info on this? Thank you & love your videos!
Hi Mukesh. Very good explanation for beginners. I am from California and looking for automation training. Is there any way to learn it from you other than the you tube videos you post. Thanks
+Dimple Bajaj Hi Dimple Bajaj thanks a ton for nice feedback. Yes I have details which I want to share. Please send test email to my id I will share the details mukeshotwani@learn-automation.com
Thanks Shama sure will do that parameter video I have created. Constructor video will upload soon. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6hf5AWdaizM.html
Suggestion:--To add the link of the previous vdo inthe current vdo ,incase someone wants to brush up and will help other to easily relate the topics . Or do you have any link which give access to the each topic in a sequence ? Thanks
Hi Mukesh, a lot thanks for this page factory video . I was searching for this from last 2 days. It helped me a lot by all means.I also searched your blog for the code of this tutorial but couldn't able to find. can you please give me the link. I will do this assignment and send you for verification. Thanks again :)
Hi Mukesh , I implemented the page object model using page factory , but when i run i am getting the java.lang.NullPointerException. Can you please help me in overcoming this exception. Thank You
I am having problem with correlation . I can create class using page object/page factory and run the test cases. Can't relate two or more page object or page factory classes. Eg. Login then add events then publish blah blah. Would you mind posting real time test scenarios? That would be far better Thanks
hi mukesh...i added enter title and content and publish button elements in seperate addnew page..while entering title text it is giving null pointer exception what might be the problem?i added constructor as well
Thanque for your reply mukesh.It worked.But please clarify one more, suppose if we have some constant elements in multiple pages(Ex :Home ,SignIn links),in which page do we write them(write only once right !!)?
Hi Mukesh i have one doubt :- Where we need to Write/mention Set System Property of Browsers like Chrome and FF ect... in page we need to Mention Browser System property...In This video u did't not spoke about Browser System property......Please help me on this....Thanks...
Hi venky you can write under if statement of "chrome" if condition is true for chrome...then inside if loop write System.setproperty("webdriver.chrome.driver",your path); Driver = new chrome driver();
Hi Mukesh.. Thanks for the efforts that put in for the videos. Its very really awesome.Trying to learn automation watching your videos only :) I have a quick question about the property file and PageFactory when i was thinking to co-relate in between the two. can it be done and will it give any advantage if we are already having @cache annonation in pagefactory model?
Thank you for the amazing video..I have a query.. for example I want to implement fluent wait..and want to give a condition to wait for an element with a locator may be xpath. How would I do it? normally I do WebElement element = (new WebDriverWait(driver, 50)) .until(ExpectedConditions.elementToBeClickable(By.xpath(YC_compName))); here instead of By.xpath(YC_compName), what can be used?
Hi Mukesh, I tried whatever you gave the assignment. I created the new page for Posts and I created the new testcase also. But how to continue this new testcase after login page testcase? Why because we already given the BrowserFactory with browser and URL and how will we continue with this in new testcase? I added all the class files in xml file and executing as a testNG suite.
Hi Mukesh, We have already a separate class file for Login. By continuing the post page in the login file, I have created another class file for post page and I'm trying to execute in a testNG xml file. In every new test case we should call the BrowserFactory class file , it will open separate browser then how will it find the element?
Hi Mukesh, As you said at 17.20 sec that if not comfortable with return type and cast you will create another video. If you have already done then could you please send me the path or else can you please create video for return type and cast and similar concepts.
Hi Mukesh, Thanks for the video.I have one doubt can you pls tell me what is the purpose of changing the return type from void to Webdriver in the helper (Browsername class).
@Mukesh I am trying to implement POM. My application has registration link and clicking on the registration link opens a popup. So when you start the process, the popup will navigate to 3-4 screens as popup. Suggestion please do I need to create Pages for each of the popup . OR shall I define all the locators for the popup screens on the Registration page itself.
I need help on switching windows,frames, uploading and downloading files, reading and writing into an excel sheet using page factory. Could you please help on this
@@Mukeshotwani thank you for your reply Mukesh. Could you please message the youtube handle for the concept of pagefactory that I asked in the above comment. Thank you so much
Hi Saif yes passing parameter will remain same you can check my framework video on this. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RvwMu7tG6TA.html
In browser factory you have taken webDriver as return type. If take void as return type plese tell what kind of changes i have to do in script Waiting for your reply.
Hello Mukesh, My project is having lot of reusable functions. Currently i'm NOT using Page factory and I have created separated classes for Page Objects, Re-usable functions and Test Cases. Here, If I follow Page Object Model using Page Factory, then should I write all reusable methods on the page objects class itself or is there any way to separate page objects and re-usable functions.