How to Solve NameError: name 'WhatsApp' is not defined -- wappdriver

Solution: Import the 'WhatsApp' module

To Solve the error, add the following line to the top of your code.

from wappdriver import WhatsApp

 

For more information:
Python wappdriver WhatsApp