Python 3.x Selenium webdriver可以';看不见元素

Python 3.x Selenium webdriver可以';看不见元素,python-3.x,selenium-webdriver,xpath,automation,qa,Python 3.x,Selenium Webdriver,Xpath,Automation,Qa,我尝试过多次使用不同的XPath和选择器。 在屏幕上显示Html。 例如: driver.find_element_by_xpath('//div[contains(@class, "task-info-panel-title")]/descendant::input[contains(@name, "[ARGUMENTS][data][TITLE]")]').send_keys("123) wait.until(EC.presence_of_

我尝试过多次使用不同的XPath和选择器。 在屏幕上显示Html。

例如:

driver.find_element_by_xpath('//div[contains(@class, "task-info-panel-title")]/descendant::input[contains(@name, "[ARGUMENTS][data][TITLE]")]').send_keys("123)
wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="task-form-bitrix_tasks_task_default_1"]/div[1]/div[1]/div[2]/input'))).send_keys("123)
我发现以下错误:

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element:[![enter image description here][1]][1]"//*[@id="task-form-bitrix_tasks_task_default_1"]/div[1]/div[1]/div[2]/input"}
selenium.common.exceptions.TimeoutException: Message:

这似乎是您选择了错误的XPath,下面的尝试可能就是这项工作

wait.until(EC.presence_of_element_located((By.XPATH, '//input[@placeholder='Rzeczy do zrobienia']'))).send_keys("123");

这似乎是您选择了错误的XPath,下面的尝试可能就是这项工作

wait.until(EC.presence_of_element_located((By.XPATH, '//input[@placeholder='Rzeczy do zrobienia']'))).send_keys("123");