'Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null helpme please

I have the following code: enter image description here

and this class:

enter image description here

when executing it sends me Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null



Solution 1:[1]

Remove the comment from your code.

Remove the /* and */ at the beginning and end of the the code.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tal Angel