I have a selenium code written in java. In this code i will give the @Before Test method to login to the website, later i have the excel sheet to continue the transactions. so now i can login to the website successfully. i have read the excel inputs and saved in the array list. now when i try to apply actions on the inputs, i am getting null pointer exception. Is that because the focus on the webpage is lost or is there any other reason? Please let me know the reason for the null pointer exception.?
case "id" :
System.out.println(this.driver);
webElement = this.driver.findElement(By.id(attributeValue));
break;