-
Notifications
You must be signed in to change notification settings - Fork 22
Optimus Generic Dictionary
Dictionary will consist of all the actions that can be performed on a element or on a set of elements.
The basic actions that are available in dictionary are:
Tap
Slide
Scroll Up/Scroll Down
Tap is used to tap an element only once/single tap.
to use this particular action you have to create a feature
file and a json
file.
-
example.feature
where
user
: the user who is using the app,
home
: the current screen on which the user wants to work/where the elements are located,
taps
: an event which can be performed on an element,
plan
: the element on which an action will be performed. -
[ScreenName].json(in this case
Planning.json
)
where
elements
: an array of all the different elements exists on a particular screen,
elementsName
: user-defined name of an element,
identifier
: the mean by which an element can be identified(i.e. id, xpath, classname),
value
: value of element,
waitFor
: defines on how to wait for the element.
This transition tracks changes to the visibility of target views in the start and end scenes and moves views in or out from one of the edges of the scene.
-
example.feature
where
saveTax
: the current screen on which the user wants to work/where the elements are located,
slides
: an event which can be performed on an element,
annualCTC
: the element on which an action will be performed,
60%
: the value upto which the slider will slide. -
saveTax.json
.
here
referTo
will define the this particular item is common in many places and we don't want to create a new entry to use it every time, so in order to that we will usereferTo
which will refer this element toCommonElements.json
which will consist all the repeating elements having a same value and locator at more then one place.
CommonElements.json
Scrolling allows the user to scroll up or down until the targeted element is found on the page or else will throw an exception if the element is not found.
example.feature
Home.json