Тёмный
No video :(

How to use Singleton Pattern in Selenium WebDriver 

Naveen AutomationLabs
Подписаться 387 тыс.
Просмотров 33 тыс.
50% 1

In this tutorial, we will learn about - How to use Singleton Pattern in Selenium WebDriver.
~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
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/...
WebServices API Automation Tutorials:
vimeo.com/onde... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
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/...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@navyaandmihirbhambhu7820
@navyaandmihirbhambhu7820 5 лет назад
Hi Naveen.. you are doing an incredible job.. really like the way you teach :) My concern is that, isn't it necessary to make the CONSTRUCTOR of the class PRIVATE in order to achieve SINGLETON so that nobody is allowed to explicitly create an object of the class from outside?
@maheshnair1774
@maheshnair1774 4 года назад
Hi Naveen is it possible to achieve parallel execution with singleton design pattern since only one instance of driver will be invoked at a time ?
@manikannanmarimuthu9232
@manikannanmarimuthu9232 6 лет назад
Hi Naveen, The way your are explaining is pretty good. Hats-off to you.
@mahireddyporeddy9594
@mahireddyporeddy9594 6 лет назад
Thank you so much naveen....i am following ur all videos...
@alena9182
@alena9182 2 года назад
Oohhh, thank you sooo muuch!! It woorks!! ❤❤❤
@andreiusa1129
@andreiusa1129 6 лет назад
Hi, Naveen ! It was a really cool video. Everybody on the web talks a lot about patterns but that is very important to show how to use them in projects. I ask you to do more videos related to implementation other patterns in framework. Thanks a lot!!!!
@KarthikD72
@KarthikD72 5 лет назад
Appreciated !!! . Can you make video On Singleton behavior during parallel execution . Thanks
@suman_mathad
@suman_mathad 11 месяцев назад
How can you call this a singleton pattern when you have not made the constructor of the class as private? I mean, anyone can still create a new object of this class and that is not singleton anymore.
@isimkhan7043
@isimkhan7043 2 года назад
Hi Naveen.. you are doing an incredible job.. really like the way you teach :)
@PutiTP
@PutiTP 2 года назад
Thank you so much!!!!
@shwetayadav4244
@shwetayadav4244 4 года назад
Amazing videos
@2009serfer
@2009serfer 4 года назад
Thanks Naveen
@mariabajwa8632
@mariabajwa8632 6 лет назад
thank you..
@ravinaidu4035
@ravinaidu4035 6 лет назад
Ok I understood
@vinodbalavel8813
@vinodbalavel8813 Год назад
Hello Naveen, Very useful video. One query. How will you handle SingleSignOn applications when we require multiple login in the test flow involved? The only way to have multiple login is to close the browser as its SSO. Will this impact us when we move on to parallel execution?
@solyog23
@solyog23 6 лет назад
Sir I have 1question, If we making webdriver static, How it will reflect parallel browser testing Using Grid?
@naveenautomationlabs
@naveenautomationlabs 6 лет назад
You can achieve singleton without static as well. I have just given an example with static. You can create WebDriver driver instance without static as well.
@solyog23
@solyog23 6 лет назад
@@naveenautomationlabs thank you sir for reply, but I have another question it will create instance of each webdriver, so is there it will consume more memory on Heap?
@chitaranjansahoo9243
@chitaranjansahoo9243 7 месяцев назад
Sir, How we get the Testbase class driver to any pages while we define any method like loginPage , homepage . not test class, because we are not extending the Testbase class
@prasadneeli8215
@prasadneeli8215 5 лет назад
Hi Naveen,i still have doubt ,where exactly this singleton pattern is benefited in Selenium web driver because web driver instance is creating and destroying for every test case
@kishanchakra
@kishanchakra 6 лет назад
Hi Naveen, i have a question. So the singleton method that we have written, should it be always a static one?
@naveenautomationlabs
@naveenautomationlabs 6 лет назад
Not compulsory
@udemytesters
@udemytesters 3 года назад
I think here we can create multiple instances , no where it is restricted it seems. Correct me if i am wrong.
@anjalilahariya1849
@anjalilahariya1849 3 года назад
Naveen i do have question in singelton we use private reference variable but you use here as public may I know the reason why you have used public instead of private
@likeminds925
@likeminds925 2 года назад
FreecrmTest is not extending the TestBase class, is it not reuired ?
@ravinaidu4035
@ravinaidu4035 6 лет назад
Hi naveen. In initialize we have two drivers .Both chrome and firefox How the system knows we have to use chrome
@sudipmitra292
@sudipmitra292 2 года назад
Can we run parallel test in multiple thread with singleton design pattern ?
@muaazster
@muaazster 2 года назад
Can we use page object model with singleton pattern
@vikalpandey937
@vikalpandey937 4 года назад
Hi Naveen, please make a vedio on Cucumber Parallel feature file execution on a same or different browser, till now this vedio is pending
@geethamaddirala
@geethamaddirala 6 лет назад
Why driver to null, not understand pls tell me anyone
@user-jz2sn3xm4c
@user-jz2sn3xm4c Год назад
I think it should be 'private static Webdriver driver = null' instead of public.
@sdet-byrahulmandve8967
@sdet-byrahulmandve8967 6 лет назад
Hi naveen Can we use beforemethod instance of beforeclass
@naveenautomationlabs
@naveenautomationlabs 6 лет назад
Yes watch full video. You will get to know :)
@sdet-byrahulmandve8967
@sdet-byrahulmandve8967 6 лет назад
Thanks naveen yes I got it
@anyaslol
@anyaslol 2 года назад
Hi Naveen, I have framework based on singleton design pattern +Cucumber + TestNG where I tried to execute the cucumber feature file scenarios in parallel but it did not work. Can we use singleton webdriver in parallel execution. Please clarify.
@bsubu29
@bsubu29 Год назад
I was just thinking of commenting on the same. If you want to have parallel test and make your driver as static in singleton class, it will not work. Singleton means, you will have a single instance. so you can not create multiple instance of your driver, hence parallel test will fail.
@ravinaidu4035
@ravinaidu4035 6 лет назад
Chrome is taken if statement then how can we mention use firefox driver
@palkherohit1
@palkherohit1 5 месяцев назад
here you are define Webdriver as public then anyone can access it and create an object for that. It should be private.
Далее
Pros & Cons of Selenium WebDriver - Interview Question
22:25
Automate BarCode using ZXing API in Selenium WebDriver
20:43
How to Become Genius in XPath in Selenium  - Session -18
39:48
What is Selenium WebDriver Architecture?
50:38
Просмотров 149 тыс.
How to Generate Log Files in Selenium using Log4j API
32:50