Skip to content

Commit bef8a80

Browse files
committed
204-create-workshop-files: Finalize Chrome, full
1 parent 3c1f96a commit bef8a80

4 files changed

Lines changed: 63 additions & 77 deletions

File tree

tutorial/2026/exercises/exercise1_TeleGuard.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
{
4141
"metadata": {},
4242
"cell_type": "code",
43-
"outputs": [],
44-
"execution_count": null,
4543
"source": [
4644
"from puma.apps.android.teleguard.teleguard import TeleGuard\n",
4745
"\n",
4846
"# This initializes an object through which we can execute TeleGuard actions. Initialization can take a while. The device udid can be found by running `adb devices` in your terminal\n",
4947
"teleguard = TeleGuard(device_udid=\"emulator-5554\")"
5048
],
51-
"id": "4594520f1f70d68"
49+
"id": "4594520f1f70d68",
50+
"outputs": [],
51+
"execution_count": null
5252
},
5353
{
5454
"metadata": {},
@@ -87,13 +87,13 @@
8787
{
8888
"metadata": {},
8989
"cell_type": "code",
90-
"outputs": [],
91-
"execution_count": null,
9290
"source": [
9391
"contact_id = '' # TeleGuard ID of the person you want to add\n",
9492
"teleguard.add_contact(contact_id)"
9593
],
96-
"id": "32e97c439cef4e75"
94+
"id": "32e97c439cef4e75",
95+
"outputs": [],
96+
"execution_count": null
9797
},
9898
{
9999
"metadata": {},
@@ -107,15 +107,15 @@
107107
{
108108
"metadata": {},
109109
"cell_type": "code",
110-
"outputs": [],
111-
"execution_count": null,
112110
"source": [
113111
"recipient_username = '' # Username or group name you will send a message to\n",
114112
"message = '' # Message to send\n",
115113
"\n",
116114
"teleguard.send_message(recipient_username, message)"
117115
],
118-
"id": "9b0e8b4d27d7e2e0"
116+
"id": "9b0e8b4d27d7e2e0",
117+
"outputs": [],
118+
"execution_count": null
119119
},
120120
{
121121
"metadata": {},
@@ -133,14 +133,14 @@
133133
{
134134
"metadata": {},
135135
"cell_type": "code",
136-
"outputs": [],
137-
"execution_count": null,
138136
"source": [
139137
"teleguard.send_picture(conversation=...,\n",
140138
" #optional parameters, you can also remove them\n",
141139
" picture_id=..., caption=... )"
142140
],
143-
"id": "a7e4d7bbfb65737a"
141+
"id": "a7e4d7bbfb65737a",
142+
"outputs": [],
143+
"execution_count": null
144144
},
145145
{
146146
"metadata": {},
@@ -157,10 +157,10 @@
157157
{
158158
"metadata": {},
159159
"cell_type": "code",
160-
"outputs": [],
161-
"execution_count": null,
162160
"source": "",
163-
"id": "65597861fba26725"
161+
"id": "65597861fba26725",
162+
"outputs": [],
163+
"execution_count": null
164164
}
165165
],
166166
"metadata": {},

tutorial/2026/exercises/exercise2_Google_Maps.ipynb

Lines changed: 11 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,16 @@
2525
"id": "7211cfcf4252eea0"
2626
},
2727
{
28-
"metadata": {
29-
"ExecuteTime": {
30-
"end_time": "2026-03-11T14:20:21.043442113Z",
31-
"start_time": "2026-03-11T14:20:15.634042563Z"
32-
}
33-
},
28+
"metadata": {},
3429
"cell_type": "code",
3530
"source": [
3631
"from puma.apps.android.google_maps.google_maps import GoogleMapsActions\n",
3732
"# maps = GoogleMapsActions(device_udid=\"emulator-5554\")\n",
3833
"maps = GoogleMapsActions(device_udid=\"32131JEHN38079\")"
3934
],
4035
"id": "ff054b6ab2f4d1d5",
41-
"outputs": [
42-
{
43-
"name": "stdout",
44-
"output_type": "stream",
45-
"text": [
46-
"2026-03-11 15:20:15 [INFO] [adb_pywrapper] Using Android SDK ROOT /home/angelina/Android/Sdk\n",
47-
"2026-03-11 15:20:15 [INFO] [puma.apps.android] Connecting to Appium driver...\n",
48-
"2026-03-11 15:20:20 [INFO] [puma.apps.android] Activating package com.google.android.apps.maps...\n",
49-
"2026-03-11 15:20:21 [INFO] [puma.apps.android] App package com.google.android.apps.maps activated!\n"
50-
]
51-
}
52-
],
53-
"execution_count": 1
36+
"outputs": [],
37+
"execution_count": null
5438
},
5539
{
5640
"metadata": {},
@@ -67,12 +51,7 @@
6751
"id": "d20bf73a6ec58009"
6852
},
6953
{
70-
"metadata": {
71-
"ExecuteTime": {
72-
"end_time": "2026-03-11T14:20:58.239808106Z",
73-
"start_time": "2026-03-11T14:20:37.280026149Z"
74-
}
75-
},
54+
"metadata": {},
7655
"cell_type": "code",
7756
"source": [
7857
"start_location = \"Amsterdam Schiphol P1\" # Enter here\n",
@@ -81,30 +60,8 @@
8160
"route_simulator = maps.get_route_simulator()"
8261
],
8362
"id": "e8395524159c0098",
84-
"outputs": [
85-
{
86-
"name": "stdout",
87-
"output_type": "stream",
88-
"text": [
89-
"2026-03-11 15:20:37 [INFO] [puma.apps.android.google_maps.google_maps] Action start_route initiated\n",
90-
"2026-03-11 15:20:38 [INFO] [puma.apps.android.google_maps.google_maps] Action start_navigation initiated\n",
91-
"2026-03-11 15:20:38 [INFO] [puma.apps.android.google_maps.google_maps] Action search_place initiated\n",
92-
"2026-03-11 15:20:38 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
93-
"2026-03-11 15:20:40 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
94-
"2026-03-11 15:20:41 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
95-
"2026-03-11 15:20:41 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
96-
"2026-03-11 15:20:43 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
97-
"2026-03-11 15:20:47 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
98-
"2026-03-11 15:20:51 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
99-
"2026-03-11 15:20:52 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
100-
"2026-03-11 15:20:53 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
101-
"2026-03-11 15:20:54 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
102-
"2026-03-11 15:20:56 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n",
103-
"2026-03-11 15:20:58 [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: localhost. Connection pool size: 1\n"
104-
]
105-
}
106-
],
107-
"execution_count": 2
63+
"outputs": [],
64+
"execution_count": null
10865
},
10966
{
11067
"metadata": {},
@@ -134,17 +91,12 @@
13491
"id": "a29a201585cee80e"
13592
},
13693
{
137-
"metadata": {
138-
"ExecuteTime": {
139-
"end_time": "2026-03-11T14:26:03.597822112Z",
140-
"start_time": "2026-03-11T14:26:03.573118728Z"
141-
}
142-
},
94+
"metadata": {},
14395
"cell_type": "code",
14496
"source": "route_simulator.update_speed(100)",
14597
"id": "6dc5a613d286266c",
14698
"outputs": [],
147-
"execution_count": 6
99+
"execution_count": null
148100
},
149101
{
150102
"metadata": {},
@@ -162,10 +114,10 @@
162114
{
163115
"metadata": {},
164116
"cell_type": "code",
165-
"outputs": [],
166-
"execution_count": null,
167117
"source": "",
168-
"id": "378b190437e6026"
118+
"id": "378b190437e6026",
119+
"outputs": [],
120+
"execution_count": null
169121
}
170122
],
171123
"metadata": {},

tutorial/2026/exercises/exercise3_Google_Chrome.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@
44
"metadata": {},
55
"cell_type": "markdown",
66
"source": [
7-
"# Exercise 3: Use Puma to conduct searches in Google Chrome\n",
8-
"In this exercise, you will use Google Chrome to conduct a web search"
7+
"# Exercise 3: Conduct searches in Google Chrome\n",
8+
"In this exercise, you will use Google Chrome to conduct a web search. As you now have some experience with Puma, you will be able to figure out how to initialize the GoogleChrome object, check what features are implemented and create a small scenario."
99
],
1010
"id": "3a5cac2cc9ffa879"
11+
},
12+
{
13+
"metadata": {},
14+
"cell_type": "code",
15+
"outputs": [],
16+
"execution_count": null,
17+
"source": "from puma.apps.android.google_chrome.google_chrome import GoogleChrome\n",
18+
"id": "65f4660ac16ac45b"
1119
}
1220
],
1321
"metadata": {},

tutorial/2026/exercises/exercise4_full_scenario.ipynb

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,35 @@
77
"# Exercise 4: Create your own scenario with multiple apps\n",
88
"In this exercise, you are free to create a more complex and realistic scenario.\n",
99
"\n",
10-
"TODO - An example how to instantiate multiple apps."
10+
"Multiple applications can be instantiated as follows:"
1111
],
1212
"id": "f1ac67fa99d49c52"
13+
},
14+
{
15+
"metadata": {},
16+
"cell_type": "code",
17+
"outputs": [],
18+
"execution_count": null,
19+
"source": [
20+
"from puma.apps.android.google_chrome.google_chrome import GoogleChrome\n",
21+
"from puma.apps.android.google_maps.google_maps import GoogleMapsActions\n",
22+
"from puma.apps.android.teleguard.teleguard import TeleGuard\n",
23+
"\n",
24+
"udid=\"emulator-5554\"\n",
25+
"\n",
26+
"alice_maps = GoogleMapsActions(udid)\n",
27+
"alice_chrome = GoogleChrome(udid)\n",
28+
"alice_teleguard = TeleGuard(udid)"
29+
],
30+
"id": "f08df9b750c9ae53"
31+
},
32+
{
33+
"metadata": {},
34+
"cell_type": "code",
35+
"outputs": [],
36+
"execution_count": null,
37+
"source": "# Implement your scenario below. Be creative and create a consistent narrative",
38+
"id": "347de0007239857d"
1339
}
1440
],
1541
"metadata": {},

0 commit comments

Comments
 (0)