I\'m trying to implement PageObject pattern for my first Login test. While running it I\'m receiving the following error:
>> py.test -v test_login.py
Your base
module is located in the ui
module. Hence line:
from base import BasePage
should be:
from ui.base import BasePage
I was just a beginner when this error struck. So, what I did was:
from models.post import Post
i was just a beginner when this error struck what i did was instead of:
from models.post import Post
i did the following after installing post as package:
from post import Post
it worked for me