java.lang.NullPointerException: Cannot invoke “org.openqa.selenium.SearchContext.findElement(org.openqa.selenium.By)” because “this.searchContext” is null
java.lang.NullPointerException: Cannot invoke “org.openqa.selenium.SearchContext.findElement(org.openqa.selenium.By)” because “this.searchContext” is null
Share
I think you have Defined the
WebDriver driver = null;