擅长:python、mysql、java
<p>您可以简单地将密钥发送到该元素。等待元素在页面加载后出现,并向元素发送键</p>
<pre><code>search=WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//input[@id='keyword']"))).send_keys("ANCH 028")
</code></pre>
<p>进口</p>
<pre><code>from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
</code></pre>