Hi I did extactly what you have shown in the video , but i am getting null pointer exception. don't know exactly where i did mistake. please please anyone help me out
when integrating Cucumber with POM , getting this error [31mjava.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null at pageObjects.loginPage.enterValidData(loginPage.java:27) at StepDefinitions.LoginStepsDefinition.user_enter_valid_data_and(LoginStepsDefinition.java:34)
add below constructor in loginpage(page object class) // Constructor to initialize WebDriver public loginPage(WebDriver driver) { this.driver = driver; } also use below line in step definition file login = new loginPage(driver); // Initialize the loginPage object with the driver it worked for me
Brilliant explanation of POM it is. Thanks for all your efforts educating us on the cucumber framework.
Glad it was helpful!
Excellent explanation I'm really thankful to you !!
Thank you very much well explanation...plz upload more videos
I will try my best
Thank you so much for uploading. It was indeed very helpful.
You're very welcome!
It would be great if you can upload tutorial videos on tags and page factories in cucumber. Thanks in advance.
Okay sure
Hello, Please share me the link as I have not watched the initial videos.
ruclips.net/p/PLxD77px6418Xjdme8VHlxy15qc038DQmt&si=2Wl5pLPf28dkvC2W
Page object model explaination ❤
Thank you.
Hi
I did extactly what you have shown in the video , but i am getting null pointer exception. don't know exactly where i did mistake. please please anyone help me out
Hello sir do you have notes for selenium interview
Getting error while running the file please help
Can you post the error trace you are getting?
when integrating Cucumber with POM , getting this error
[31mjava.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null
at pageObjects.loginPage.enterValidData(loginPage.java:27)
at StepDefinitions.LoginStepsDefinition.user_enter_valid_data_and(LoginStepsDefinition.java:34)
add below constructor in loginpage(page object class)
// Constructor to initialize WebDriver
public loginPage(WebDriver driver) {
this.driver = driver;
}
also use below line in step definition file
login = new loginPage(driver); // Initialize the loginPage object with the driver
it worked for me