0

等待网络驱动程序,铬驱动程序

我有以下html代码:

 <iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, ctl00_ContentMain_EditSegment1_txtDesc" aria-describedby="cke_27" style="width:100%;height:100%">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="CSS1Compat" lang="en" dir="ltr">
<head>
<title data-cke-title="Rich text editor, ctl00_ContentMain_EditSegment1_txtDesc">Rich text editor, ctl00_ContentMain_EditSegment1_txtDesc</title>
<link href="http:somefile.css" rel="stylesheet" type="text/css">
<style data-cke-temp="1" type="text/css">
</head>
<body class="cke_show_borders" contenteditable="true" spellcheck="false">
<br type="_moz">
</body>
</html>
</iframe>

我使用以下代码将数据设置为 iframe 的主体:

@browser.frame(:title => 'Rich text editor, ctl00_ContentMain_EditSegment1_txtDesc').send_keys  "description"

昨天我用新的更新了我的 chromedriver:https ://code.google.com/p/chromedriver/downloads/list 这条线不再适合我了,但它仍然可以使用旧的 chromedriver

任何想法如何使它与新的 chromedriver 一起工作?

谢谢,安娜

4

2 回答 2

0

是的,遇到了同样的问题。切换回旧版本并让它再次工作。

在 C# try/catch 中获取了所有 frameSwitch 代码,并且没有给出错误,只是一个空的文本字段。

(道场富文本)

于 2013-06-27T18:26:01.600 回答
0

新 chromedriver v.2.2 中修复的问题:

https://code.google.com/p/chromedriver/downloads/list

于 2013-08-13T13:04:30.910 回答