Skip to content

Commit caeef94

Browse files
committed
add screenshots for the menu and the services list
1 parent 92ea11f commit caeef94

File tree

2 files changed

+38
-5
lines changed

2 files changed

+38
-5
lines changed

Diff for: docs/index.rst

+36-3
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ When you are ready to start with the chosen itinerary, tap "Let's go":
126126
*** Test cases ***
127127
128128
Choose another itinerary alternative
129-
Click element css=.route-buttons-1
129+
Click element css=.ui-page-active .route-buttons-1
130130
Sleep 1 s
131131
Capture page screenshot navigatorwindow-alternative-itinerary.png
132132
133133
That's all - now you can get on your way!
134134

135-
.. figure:: navigatorwindow-final.png
135+
.. figure:: navigatorwindow-navigation.png
136136

137137
.. code:: robotframework
138138
:class: hidden
@@ -141,4 +141,37 @@ That's all - now you can get on your way!
141141
142142
Start navigation
143143
Click link "Let's go"
144-
Capture page screenshot navigatorwindow-final.png
144+
Capture page screenshot navigatorwindow-navigation.png
145+
146+
In the top-right corner, there's a menu with more features:
147+
148+
.. figure:: navigatorwindow-menu.png
149+
150+
.. code:: robotframework
151+
:class: hidden
152+
153+
*** Test cases ***
154+
155+
Open menu
156+
Click link "Back"
157+
Sleep 1 s
158+
Click link "Back"
159+
Sleep 1 s
160+
Click link "Menu"
161+
Sleep 1 s
162+
Capture page screenshot navigatorwindow-menu.png
163+
164+
For instance, instead of typing in a destination, you can choose from
165+
a list of nearest services:
166+
167+
.. figure:: navigatorwindow-services.png
168+
169+
.. code:: robotframework
170+
:class: hidden
171+
172+
*** Test cases ***
173+
174+
Display list of services
175+
Click link "Find nearest services"
176+
Sleep 1 s
177+
Capture page screenshot navigatorwindow-services.png

Diff for: docs/robot-resources.robot

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ Input text and validate
9494

9595
Click link '${text}'
9696
Assign id to element
97-
... xpath=//*[contains(text(), '${text}')]/ancestor::a
97+
... xpath=//div[contains(concat(' ',normalize-space(@class),' '),' ui-page-active ')]//*[contains(text(), '${text}')]/ancestor::a
9898
... link-${counter}
9999
Element should be visible link-${counter}
100100
Click element link-${counter}
101101
Increment counter
102102

103103
Click link "${text}"
104104
Assign id to element
105-
... xpath=//*[contains(text(), "${text}")]/ancestor::a
105+
... xpath=//div[contains(concat(' ',normalize-space(@class),' '),' ui-page-active ')]//*[contains(text(), "${text}")]/ancestor::a
106106
... link-${counter}
107107
Element should be visible link-${counter}
108108
Click element link-${counter}

0 commit comments

Comments
 (0)