我无法通过 Selenium Python 单击“Crear”按钮

I can't click the "Crear" button through Selenium Python

提问人:Bruno Franco Sentis 提问时间:10/18/2023 更新时间:10/18/2023 访问量:24

问:

enter image description here

enter image description here

我尝试使用ActionChain,搜索阴影,框架,但什么都没有。

driver.get(Url)
time.sleep(5)

# Wait
wait = WebDriverWait(driver, 7, poll_frequency=1, ignored_exceptions=[
                     ElementNotVisibleException, ElementNotSelectableException])



pathBody = wait.until(EC.element_to_be_clickable(
    (By.XPATH, '/html/body')))

hover = ActionChains(driver).move_to_element(pathBody)
hover.perform()
print('Funciona hover')


pathBody = wait.until(EC.element_to_be_clickable(
    (By.XPATH, '//*[@id="mount_0_0_5x"]/div/div/div[2]/div/div/div/div[1]/div[1]/div[1]/div/div/div/div/div[2]/div[7]/div/span/div/a/div/div[1]/div/div/svg')))

selenium.common.exceptions.InvalidArgumentException:消息:无效 argument: 'value' 必须是一个字符串 (会话信息: 铬 = 117.0.5938.150)

python selenium-webdriver 网页抓取 xpath

评论

0赞 Siebe Jongebloed 10/18/2023
行号 InvalidArgumentException ?

答: 暂无答案