i am getting error Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "this.driver" is null. can anyone help pls
Hi sheetal this happens when you don't make the driver as static. change the driver to static and you will see that this method will be executed successfully.
@@sssaamm29988 Hi Sampath, can you please help me understand, how static is clearing this error? We are inheriting the basetest to screenshot utility. Hence driver object has same scope in utility just like in baseclass. Then why static is mandatory.
Hi @@sssaamm29988 after making driver as static still getting same issue : Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "utility.UtilTest.driver" is null at utility.UtilTest.getscreenshot(UtilTest.java:18) , can u help me I am trying from last two days
🔸FREE Training's at training.rcvacademy.com 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM
god level classes
Man gaye Guru, Superb!!
Sir , the way of your explanation is really good.Thank You.
Thank you very much. Keep watching and sharing.
This is the best explanation I've ever seen!! Thank you sm!!
Thank you for this. Will it work for paralell test ng execution ?
Thank you sir..i really wanted to become a Automation tester..bt there is lack of vacancies
How can I use in the data-driven framework?
Hi Sir,
Could you please share your codes on git? it will be helpful.
Thanks,
Abhishek
Screenshot karne ka code kaha hai. 16th video me kaha gaya ki previous video me hai. kuch bhi nahi hai
i am getting error
Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "this.driver" is null. can anyone help pls
Hi sheetal this happens when you don't make the driver as static. change the driver to static and you will see that this method will be executed successfully.
@@sssaamm29988 Hi Sampath, can you please help me understand, how static is clearing this error? We are inheriting the basetest to screenshot utility. Hence driver object has same scope in utility just like in baseclass. Then why static is mandatory.
Hi @@sssaamm29988 after making driver as static still getting same issue : Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "utility.UtilTest.driver" is null
at utility.UtilTest.getscreenshot(UtilTest.java:18) , can u help me I am trying from last two days
Hi Sir,
Facing this issue www.slf4j.org/codes.html#StaticLoggerBinder, can you tell me will version testNG suitable for this