-
Notifications
You must be signed in to change notification settings - Fork 16
How to setup models for UI and Service test
fikreselam edited this page Jan 3, 2019
·
12 revisions
This section shows examples of how to specify page element and a location value. Web driver interacts with the page based on how we define our model objects. The codeless framework creates page object model for each ui model files under test. This model files need to have a correct yaml structure as shown below.
example:
username:
by: "name"
locator: "username"
password:
by: "name"
locator: "password"
login:
by: "xpath"
locator: "/html/body/app-root/app-login/div/div/div[1]/form/div[11]/div/button"
virtual service project name:
by: "name"
locator: "projectName"
blank:
by: "css"
locator: "input[value='TEST']"
browse:
by: "className"
locator: "btn-primary"
slack:
by: "name"
locator: "slackNotification"