Przeglądaj źródła

ajout emma modifs

emmanuelle 1 rok temu
rodzic
commit
6dfbc7e0de
2 zmienionych plików z 113 dodań i 5 usunięć
  1. 108 0
      geckodriver.log
  2. 5 5
      test_emma.py

+ 108 - 0
geckodriver.log

@@ -0,0 +1,108 @@
+1704982054712	geckodriver	INFO	Listening on 127.0.0.1:60335
+1704982058023	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "60336" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\rust_mozprofileXmHjXV"
+console.warn: services.settings: Ignoring preference override of remote settings server
+console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
+1704982059279	Marionette	INFO	Marionette enabled
+Dynamically enable window occlusion 0
+1704982059568	Marionette	INFO	Listening on port 60350
+WebDriver BiDi listening on ws://127.0.0.1:60336
+Read port: 60350
+1704982060089	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
+DevTools listening on ws://127.0.0.1:60336/devtools/browser/76850e3d-dafd-4161-8b34-bc269bfc3613
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+1704982090850	addons.xpi	ERROR	System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
+console.log: "RemoteSettingsWorker error: DataError: IndexedDB: records, timestamps execute() Data provided to an operation does not meet requirements."
+console.error: (new RemoteSettingsWorkerError("DataError: IndexedDB: records, timestamps execute() Data provided to an operation does not meet requirements.", "resource://services-settings/RemoteSettingsWorker.sys.mjs", 34))
+1704982112939	geckodriver	INFO	Listening on 127.0.0.1:60447
+1704982116341	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "60448" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\rust_mozprofileavCgBw"
+console.warn: services.settings: Ignoring preference override of remote settings server
+console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
+1704982117628	Marionette	INFO	Marionette enabled
+Dynamically enable window occlusion 0
+1704982117976	Marionette	INFO	Listening on port 60457
+WebDriver BiDi listening on ws://127.0.0.1:60448
+Read port: 60457
+1704982118591	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
+DevTools listening on ws://127.0.0.1:60448/devtools/browser/20e14629-ca60-4c38-adbc-61d022be79d4
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+1704982126389	Marionette	INFO	Stopped listening on port 60457
+Dynamically enable window occlusion 1
+1704982359535	geckodriver	INFO	Listening on 127.0.0.1:60690
+1704982362893	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "60691" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\rust_mozprofileq5gYQs"
+console.warn: services.settings: Ignoring preference override of remote settings server
+console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
+1704982364113	Marionette	INFO	Marionette enabled
+Dynamically enable window occlusion 0
+1704982364417	Marionette	INFO	Listening on port 60700
+WebDriver BiDi listening on ws://127.0.0.1:60691
+Read port: 60700
+1704982364968	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
+DevTools listening on ws://127.0.0.1:60691/devtools/browser/ce21f9f2-de38-434d-a49d-70d5777fae83
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+1704982394704	addons.xpi	ERROR	System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
+console.log: "RemoteSettingsWorker error: DataError: IndexedDB: records, timestamps execute() Data provided to an operation does not meet requirements."
+console.error: (new RemoteSettingsWorkerError("DataError: IndexedDB: records, timestamps execute() Data provided to an operation does not meet requirements.", "resource://services-settings/RemoteSettingsWorker.sys.mjs", 34))
+1704982529661	geckodriver	INFO	Listening on 127.0.0.1:60883
+1704982533037	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "60884" "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\rust_mozprofilebs7zkd"
+console.warn: services.settings: Ignoring preference override of remote settings server
+console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
+1704982534480	Marionette	INFO	Marionette enabled
+Dynamically enable window occlusion 0
+1704982534826	Marionette	INFO	Listening on port 60894
+WebDriver BiDi listening on ws://127.0.0.1:60884
+Read port: 60894
+1704982535397	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
+DevTools listening on ws://127.0.0.1:60884/devtools/browser/9ee5af4a-2ea6-4651-aa01-d670df2e3fbb
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+1704982564522	addons.xpi	ERROR	System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
+console.log: "RemoteSettingsWorker error: DataError: IndexedDB: records, timestamps execute() Data provided to an operation does not meet requirements."
+console.error: (new RemoteSettingsWorkerError("DataError: IndexedDB: records, timestamps execute() Data provided to an operation does not meet requirements.", "resource://services-settings/RemoteSettingsWorker.sys.mjs", 34))
+1704982577404	geckodriver	INFO	Listening on 127.0.0.1:60985
+1704982580896	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--headless" "--remote-debugging-port" "609 ... "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\rust_mozprofileGNa0RF"
+*** You are running in headless mode.
+console.warn: services.settings: Ignoring preference override of remote settings server
+console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
+1704982581654	Marionette	INFO	Marionette enabled
+Dynamically enable window occlusion 0
+1704982581822	Marionette	INFO	Listening on port 60997
+WebDriver BiDi listening on ws://127.0.0.1:60986
+Read port: 60997
+1704982582233	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
+[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
+console.error: ({})
+DevTools listening on ws://127.0.0.1:60986/devtools/browser/19b0b182-ebe5-42d8-9b17-75a0c56916ec
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+1704982587349	Marionette	INFO	Stopped listening on port 60997
+JavaScript warning: https://www.saucedemo.com/static/js/2.9b02e67e.chunk.js, line 2: Script terminated by timeout at:
+_@https://www.saucedemo.com/static/js/2.9b02e67e.chunk.js:2:29258
+t.default/o/</v.current<@https://www.saucedemo.com/static/js/2.9b02e67e.chunk.js:2:30482
+
+Dynamically enable window occlusion 1
+1704982669137	geckodriver	INFO	Listening on 127.0.0.1:61103
+1704982672577	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--headless" "--remote-debugging-port" "611 ... "--remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\EMMANU~1\\AppData\\Local\\Temp\\rust_mozprofileszYbn5"
+*** You are running in headless mode.
+console.warn: services.settings: Ignoring preference override of remote settings server
+console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
+1704982673789	Marionette	INFO	Marionette enabled
+Dynamically enable window occlusion 0
+1704982673992	Marionette	INFO	Listening on port 61118
+WebDriver BiDi listening on ws://127.0.0.1:61104
+Read port: 61118
+1704982674151	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
+[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
+console.error: ({})
+DevTools listening on ws://127.0.0.1:61104/devtools/browser/e4c58376-7284-40b5-a190-17905a737cd5
+console.error: (new TypeError("linkMap is undefined", "resource://gre/modules/NewTabUtils.sys.mjs", 2001))
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+console.warn: LoginRecipes: "Falling back to a synchronous message for: https://www.saucedemo.com."
+1704982682464	Marionette	INFO	Stopped listening on port 61118
+JavaScript warning: https://www.saucedemo.com/static/js/2.9b02e67e.chunk.js, line 2: Script terminated by timeout at:
+_@https://www.saucedemo.com/static/js/2.9b02e67e.chunk.js:2:29258
+t.default/o/</v.current<@https://www.saucedemo.com/static/js/2.9b02e67e.chunk.js:2:30482
+
+Dynamically enable window occlusion 1

+ 5 - 5
test_emma.py

@@ -32,11 +32,11 @@ def element_visible_actif(elem):
 def test_loginOK():
     log.info("Test du Login avec succès")
 
-    #options = webdriver.FirefoxOptions()
-    #options.add_argument('--headless')
-    #driver = webdriver.Firefox(options=options)
+    options = webdriver.FirefoxOptions()
+    options.add_argument('--headless')
+    driver = webdriver.Firefox(options=options)
 
-    driver = webdriver.Firefox()
+    #driver = webdriver.Chrome()
 
 
     driver.get("https://www.saucedemo.com/")
@@ -57,7 +57,7 @@ def test_loginOK():
     button_burger.click()
 
     button_all_items = driver.find_element(By.ID, "inventory_sidebar_link")
-    #element_visible_actif(button_all_items)
+    element_visible_actif(button_all_items)
     button_all_items.click()
     
     assert driver.current_url == "https://www.saucedemo.com/inventory.html", "Nous ne somme pas sur la bonne page"