Skip to content

Commit f5c6556

Browse files
committed
Testing product searches into eshop
1 parent 7ac0afc commit f5c6556

File tree

4 files changed

+208
-0
lines changed

4 files changed

+208
-0
lines changed

1-UI-Elements/geckodriver.log

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,3 +1682,18 @@ Read port: 51409
16821682
DevTools listening on ws://127.0.0.1:51402/devtools/browser/9c5eb49c-ded1-4e05-b8d2-875a0c17d032
16831683
1713344231991 Marionette INFO Stopped listening on port 51409
16841684
Dynamically enable window occlusion 1
1685+
1715858008874 geckodriver INFO Listening on 127.0.0.1:51687
1686+
1715858011974 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "51688" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileUiWU43"
1687+
console.warn: services.settings: Ignoring preference override of remote settings server
1688+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1689+
Dynamically enable window occlusion 0
1690+
1715858012855 Marionette INFO Marionette enabled
1691+
1715858012962 Marionette INFO Listening on port 51696
1692+
WebDriver BiDi listening on ws://127.0.0.1:51688
1693+
Read port: 51696
1694+
1715858013232 RemoteAgent WARN TLS certificate errors will be ignored for this session
1695+
DevTools listening on ws://127.0.0.1:51688/devtools/browser/530d4ed1-cfce-4e27-aa5f-6b3bde561d69
1696+
console.error: ({})
1697+
JavaScript warning: https://pagead2.googlesyndication.com/bg/eD-LbCVv8RN4elg6Wh2WeHuIVrik8zRjU-U-w0vCCto.js line 2 > eval line 1757 > eval line 1 > eval line 1 > eval, line 1: WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER.
1698+
1715858031781 Marionette INFO Stopped listening on port 51696
1699+
Dynamically enable window occlusion 1

2-Interactions/mouse-interactions.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Implementing soon
3+
"""
4+
# Todo: mouse-interactions: comming soon
5+
from selenium import webdriver
6+
from selenium.webdriver import ActionChains
7+
from selenium.webdriver.common.by import By
8+
9+
fDriver = webdriver.Firefox()
10+
11+
fDriver.maximize_window()
12+
fDriver.get('https://rahulshettyacademy.com/AutomationPractice/')
13+
14+
# Action Chain
15+
action = ActionChains(fDriver)

Practice/geckodriver.log

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,161 @@ console.warn: services.settings: main/cookie-banner-rules-list sync interrupted
122122
console.warn: services.settings: main/sites-classification sync interrupted by shutdown
123123
console.warn: services.settings: main/anti-tracking-url-decoration sync interrupted by shutdown
124124
console.error: (new AbortError("IndexedDB: main/public-suffix-list getLastModified() IndexedDB: execute() A request was aborted, for example through a call to IDBTransaction.abort.", "resource://services-settings/IDBHelpers.sys.mjs", 16))
125+
1715859743898 geckodriver INFO Listening on 127.0.0.1:52138
126+
1715859746962 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52139" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileY0tAt0"
127+
console.warn: services.settings: Ignoring preference override of remote settings server
128+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
129+
Dynamically enable window occlusion 0
130+
1715859747381 Marionette INFO Marionette enabled
131+
1715859747467 Marionette INFO Listening on port 52147
132+
Read port: 52147
133+
WebDriver BiDi listening on ws://127.0.0.1:52139
134+
1715859747549 RemoteAgent WARN TLS certificate errors will be ignored for this session
135+
DevTools listening on ws://127.0.0.1:52139/devtools/browser/f2b630b0-58d5-4f9e-ba45-159b58d561ba
136+
1715859774312 Marionette INFO Stopped listening on port 52147
137+
Dynamically enable window occlusion 1
138+
1715859779563 geckodriver INFO Listening on 127.0.0.1:52198
139+
1715859782746 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52199" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofile6n7s2q"
140+
console.warn: services.settings: Ignoring preference override of remote settings server
141+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
142+
Dynamically enable window occlusion 0
143+
1715859783151 Marionette INFO Marionette enabled
144+
1715859783230 Marionette INFO Listening on port 52208
145+
WebDriver BiDi listening on ws://127.0.0.1:52199
146+
Read port: 52208
147+
1715859783424 RemoteAgent WARN TLS certificate errors will be ignored for this session
148+
DevTools listening on ws://127.0.0.1:52199/devtools/browser/535b6803-b584-4a51-9109-010b03022ecd
149+
1715859813832 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
150+
1715859817135 Marionette INFO Stopped listening on port 52208
151+
Dynamically enable window occlusion 1
152+
console.error: services.settings:
153+
Message: StorageError: Storage error: Error: IndexedDB: main/translations-models pruneAttachments() IndexedDB: execute() The application is shutting down
154+
Stack:
155+
StorageError@resource://services-settings/RemoteSettingsClient.sys.mjs:153:5
156+
_adjustedError@resource://services-settings/RemoteSettingsClient.sys.mjs:928:14
157+
maybeSync@resource://services-settings/RemoteSettingsClient.sys.mjs:816:38
158+
observe@resource://gre/modules/AsyncShutdown.sys.mjs:569:17
159+
160+
console.error: (new Error("IndexedDB: main/newtab-wallpapers getLastModified() IndexedDB: execute() The application is shutting down", "resource://services-settings/IDBHelpers.sys.mjs", 16))
161+
1715859887955 geckodriver INFO Listening on 127.0.0.1:52310
162+
1715859891027 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52311" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileyauIwp"
163+
console.warn: services.settings: Ignoring preference override of remote settings server
164+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
165+
Dynamically enable window occlusion 0
166+
1715859891440 Marionette INFO Marionette enabled
167+
1715859891520 Marionette INFO Listening on port 52320
168+
WebDriver BiDi listening on ws://127.0.0.1:52311
169+
Read port: 52320
170+
1715859891715 RemoteAgent WARN TLS certificate errors will be ignored for this session
171+
DevTools listening on ws://127.0.0.1:52311/devtools/browser/7da10a42-eed8-48ba-b317-0ecc23a8e6e1
172+
1715859912837 Marionette INFO Stopped listening on port 52320
173+
Dynamically enable window occlusion 1
174+
1715860122497 geckodriver INFO Listening on 127.0.0.1:52464
175+
1715860125557 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52465" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileQzpVNH"
176+
console.warn: services.settings: Ignoring preference override of remote settings server
177+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
178+
Dynamically enable window occlusion 0
179+
1715860125949 Marionette INFO Marionette enabled
180+
1715860126038 Marionette INFO Listening on port 52474
181+
WebDriver BiDi listening on ws://127.0.0.1:52465
182+
Read port: 52474
183+
1715860126240 RemoteAgent WARN TLS certificate errors will be ignored for this session
184+
DevTools listening on ws://127.0.0.1:52465/devtools/browser/6dd5fdda-874a-4a5f-bb37-ee2495accc3c
185+
1715860138872 Marionette INFO Stopped listening on port 52474
186+
Dynamically enable window occlusion 1
187+
1715860217722 geckodriver INFO Listening on 127.0.0.1:52554
188+
1715860220802 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52555" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofiletZpSfX"
189+
console.warn: services.settings: Ignoring preference override of remote settings server
190+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
191+
Dynamically enable window occlusion 0
192+
1715860221188 Marionette INFO Marionette enabled
193+
1715860221268 Marionette INFO Listening on port 52564
194+
WebDriver BiDi listening on ws://127.0.0.1:52555
195+
Read port: 52564
196+
1715860221490 RemoteAgent WARN TLS certificate errors will be ignored for this session
197+
DevTools listening on ws://127.0.0.1:52555/devtools/browser/4b101860-b141-4637-97c1-a43f155df28a
198+
1715860252940 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
199+
1715860552330 Marionette INFO Stopped listening on port 52564
200+
Dynamically enable window occlusion 1
201+
ng command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52751" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileTIs7sV"
202+
console.warn: services.settings: Ignoring preference override of remote settings server
203+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
204+
Dynamically enable window occlusion 0
205+
1715860531059 Marionette INFO Marionette enabled
206+
1715860531142 Marionette INFO Listening on port 52760
207+
WebDriver BiDi listening on ws://127.0.0.1:52751
208+
Read port: 52760
209+
1715860531227 RemoteAgent WARN TLS certificate errors will be ignored for this session
210+
DevTools listening on ws://127.0.0.1:52751/devtools/browser/b0b915f9-3964-4395-9e89-7cb360bfe850
211+
JavaScript error: https://wp-eshop.ggeorgiou.work/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js?ver=60c91d7c9ae3e7b1782f, line 8: Error: There is no route for the given namespace (/wc/store/v1) in the store
212+
1715860551600 Marionette INFO Stopped listening on port 52760
213+
Dynamically enable window occlusion 1
214+
1715860785357 geckodriver INFO Listening on 127.0.0.1:52926
215+
1715860788426 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "52927" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilerqRqzO"
216+
console.warn: services.settings: Ignoring preference override of remote settings server
217+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
218+
Dynamically enable window occlusion 0
219+
1715860788819 Marionette INFO Marionette enabled
220+
1715860788902 Marionette INFO Listening on port 52936
221+
WebDriver BiDi listening on ws://127.0.0.1:52927
222+
Read port: 52936
223+
1715860789123 RemoteAgent WARN TLS certificate errors will be ignored for this session
224+
DevTools listening on ws://127.0.0.1:52927/devtools/browser/eb228a8f-fcae-43bb-a190-97f6c2d6c807
225+
JavaScript error: https://wp-eshop.ggeorgiou.work/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js?ver=60c91d7c9ae3e7b1782f, line 8: Error: There is no route for the given namespace (/wc/store/v1) in the store
226+
1715860810653 Marionette INFO Stopped listening on port 52936
227+
Dynamically enable window occlusion 1
228+
1715861099654 geckodriver INFO Listening on 127.0.0.1:53137
229+
1715861102711 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53138" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilepqZgFD"
230+
console.warn: services.settings: Ignoring preference override of remote settings server
231+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
232+
Dynamically enable window occlusion 0
233+
1715861103118 Marionette INFO Marionette enabled
234+
1715861103200 Marionette INFO Listening on port 53147
235+
WebDriver BiDi listening on ws://127.0.0.1:53138
236+
Read port: 53147
237+
1715861103399 RemoteAgent WARN TLS certificate errors will be ignored for this session
238+
DevTools listening on ws://127.0.0.1:53138/devtools/browser/6c292b6e-e4de-4f1a-8198-a786d63b8914
239+
JavaScript error: https://wp-eshop.ggeorgiou.work/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js?ver=60c91d7c9ae3e7b1782f, line 8: Error: There is no route for the given namespace (/wc/store/v1) in the store
240+
1715861133214 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
241+
1715861217599 Marionette INFO Stopped listening on port 53141715861220208 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53240" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileHBVGZY"
242+
console.warn: services.settings: Ignoring preference override of remote settings server
243+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
244+
Dynamically enable window occlusion 0
245+
1715861220599 Marionette INFO Marionette enabled
246+
1715861220685 Marionette INFO Listening on port 53249
247+
WebDriver BiDi listening on ws://127.0.0.1:53240
248+
Read port: 53249
249+
1715861220908 RemoteAgent WARN TLS certificate errors will be ignored for this session
250+
DevTools listening on ws://127.0.0.1:53240/devtools/browser/92752f35-0456-442b-a4f8-9feed2efcd80
251+
JavaScript error: https://wp-eshop.ggeorgiou.work/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js?ver=60c91d7c9ae3e7b1782f, line 8: Error: There is no route for the given namespace (/wc/store/v1) in the store
252+
1715861250620 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
253+
1715861302678 Marionette INFO Stopped listening on port 53249
254+
Dynamically enable window occlusion 1
255+
ng command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53320" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofilezTpxlF"
256+
console.warn: services.settings: Ignoring preference override of remote settings server
257+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
258+
Dynamically enable window occlusion 0
259+
1715861284955 Marionette INFO Marionette enabled
260+
1715861285040 Marionette INFO Listening on port 53330
261+
WebDriver BiDi listening on ws://127.0.0.1:53320
262+
Read port: 53330
263+
1715861285242 RemoteAgent WARN TLS certificate errors will be ignored for this session
264+
DevTools listening on ws://127.0.0.1:53320/devtools/browser/b3a2d850-a08b-425c-9bc2-91e7fee1508b
265+
JavaScript error: https://wp-eshop.ggeorgiou.work/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js?ver=60c91d7c9ae3e7b1782f, line 8: Error: There is no route for the given namespace (/wc/store/v1) in the store
266+
1715861301570 Marionette INFO Stopped listening on port 53330
267+
Dynamically enable window occlusion 1
268+
1715861504091 geckodriver INFO Listening on 127.0.0.1:53468
269+
1715861507168 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "53469" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\HP\\AppData\\Local\\Temp\\rust_mozprofileVwgUSD"
270+
console.warn: services.settings: Ignoring preference override of remote settings server
271+
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
272+
Dynamically enable window occlusion 0
273+
1715861507594 Marionette INFO Marionette enabled
274+
1715861507679 Marionette INFO Listening on port 53478
275+
WebDriver BiDi listening on ws://127.0.0.1:53469
276+
Read port: 53478
277+
1715861507908 RemoteAgent WARN TLS certificate errors will be ignored for this session
278+
DevTools listening on ws://127.0.0.1:53469/devtools/browser/23aead0f-8182-4f0b-8ae4-a99e61d602e3
279+
JavaScript error: https://wp-eshop.ggeorgiou.work/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js?ver=60c91d7c9ae3e7b1782f, line 8: Error: There is no route for the given namespace (/wc/store/v1) in the store
280+
1715861539300 addons.xpi ERROR System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
281+
1715861622880 Marionette INFO Stopped listening on port 53478
282+
Dynamically enable window occlusion 1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from selenium import webdriver
2+
from selenium.webdriver.common.by import By
3+
4+
# Firefox webdriver for my cv site
5+
fDriver = webdriver.Firefox()
6+
fDriver.get('https://wp-eshop.ggeorgiou.work/shop/')
7+
8+
# Search for 'beanie' products
9+
fDriver.find_element(By.ID, "wp-block-search__input-1").send_keys('beanie')
10+
fDriver.find_element(By.XPATH, "//button[@aria-label='Αναζήτηση']").click()
11+
12+
# Add products into cart
13+
results = fDriver.find_elements(By.CSS_SELECTOR, "ul > li")
14+
countProducts = len(results)
15+
assert countProducts > 0
16+
for product in results:
17+
fDriver.find_element(By.CSS_SELECTOR, "li button").click()
18+
# ToDo: wp-eshop-1. Need scroll down action
19+
20+
# Todo: 2. wp-eshop-2 - Goto cart and check if the sum is valid - file: ExplicitwaitDemo1.

0 commit comments

Comments
 (0)