-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it also support Page object model #79
Comments
You can always create new steps and you can choose to use the driver class or not. You should be able to use other frameworks , too.
Can you elaborate more on what you are trying/not able to do? |
@spyoungtech - Thank you for your response. Let me give you insights on what I am trying to achieve : My Project structure:
Code : BasePage.py :
stepsLogin.py : from behave import *
loginPage.py :
environment.py :
I have just divided diff. code into the diff. packages and classes. My page class has actual logic like enter data, click on an element, etc and those I am using in step class. The issue is when I use the above one, It never goes into class BehaveRequestDriver so something wrong in the first place I think. |
I have been using normal Python and behave BDD. Today I come across this behave-webdriver and curious to know if it supports page object model.
I tried to implement it within my existing framework but seems I could not.
Your given example has almost everything like steps, features, etc but it has no page class. In page object model generally we devices logic and data. Currently, if I use your this framework. I will have to write data and login both into step class I assume.
Looking for some helpful inputs.
The text was updated successfully, but these errors were encountered: