【发布时间】:2018-04-03 14:12:43
【问题描述】:
我正在尝试在 C# 中使用 Selenium for Firefox 将密钥(一串 1000 行)发送到 textarea,但 Selenium 冻结了一分钟,之后出现错误,但文本显示在 textarea 上。
这是错误:
对远程 WebDriver 服务器的 URL 的 HTTP 请求超时 60秒后
会是什么?
谢谢,
编辑
String text;
IWebElement textarea;
try
{
textarea.Clear();
textarea.SendKeys(text); //Here's where it freezes for 60 seconds.
}
catch(Exception e)
{
//After those 60 seconds, the aforementioned error appears.
}
//And finally, after another 30 seconds, the text appears written on the textarea.
text 和 textarea 代表一些真实值,它们是正确的(元素存在等)
【问题讨论】:
-
您使用的是哪种 Selenium 语言绑定艺术? Java / Python / C#?你能用你的代码试验更新问题吗?
-
是的,我已经更新了问题。
标签: c# selenium firefox geckodriver