瀏覽代碼

création fct go_to_checkout

Gogs 1 年之前
父節點
當前提交
73eb356d2a
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      test_main.py

+ 6 - 0
test_main.py

@@ -35,6 +35,12 @@ def connexion_saucedemo(username, passwd, arg="--headless"):
 
 
 ##### MATTHIEU
+    
+def go_to_checkout():
+    checkout = driver.find_element(By.ID, "checkout")
+    checkout.click()
+
+