curr = conn.cursor()
sql = """ select order# from Orders WHERE STATUS <> 'Shipped' and STATUS <> 'Not Found' and order# > '' """
curr.execute(sql)
row: List[Any] = curr.fetchall()
for x in row:
searchInput = x
serchinput_textbox = driver.find_element_by_id("searchInput")
serchinput_textbox.send_keys(searchInput)
searchbutton = driver.find_element_by_id("searchButton")
searchbutton.click()
当我打印该行时,所有记录都在那里,但在 for 循环中它只使用最后一条记录。我不确定我是否正确创建了列表。