gpt4 book ai didi

java - Mozilla 35.0.1 上的 Selenium 问题 - org.openqa.selenium.WebDriverException : arguments[1] is undefined

转载 作者:行者123 更新时间:2023-11-30 11:07:23 25 4
gpt4 key购买 nike

这一行

((JavascriptExecutor)driver).executeScript("arguments[0].value=arguments[1]", driver.findElement(By.xpath(".//*[@id='txtFromDate']")),date);

抛出异常

org.openqa.selenium.WebDriverException: arguments[1] is undefined.

谁能解释一下为什么?

最佳答案

这是 selenium 2.44 + firefox 35 中的错误:

将 selenium 升级到 2.45。

关于java - Mozilla 35.0.1 上的 Selenium 问题 - org.openqa.selenium.WebDriverException : arguments[1] is undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28941880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com