Gogs 1 year ago
parent
commit
63d3cfb2f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test_sauceDemolog.py

+ 1 - 1
test_sauceDemolog.py

@@ -72,7 +72,7 @@ def test_Boutenbout():
         assert driver.current_url == "https://www.saucedemo.com/inventory.html", "Nous ne somme pas sur la bonne page"
         time.sleep(2)
 
-        item = driver.find_element(By.ID,"item_4_title_link")
+        item = driver.find_element(By.LINK_TEXT,"Sauce Labs Backpack")
         log.info("Item de la page:" +item.text)
         item.click()