0
我有下面的代碼在userextensions.js文件中添加每當我添加以下代碼段它給了我下面的錯誤我收到未結束的字符串字面硒IDE我userextension.js文件
無法加載用戶extensions.js:語法錯誤:未結束的字符串
Selenium.prototype.doInsertCKEditor = function(locator,word)
{
this.doWaitForCondition("var x =
Selenium.browserbot.findElementOrNull('//td[@id=\"cke_contents_form
\"]');x != null;", "50000");
this.doRunScript("CKEDITOR.instances['"+locator+"'].setData('"+word
+"');");
http: //stackoverflow.com/questions/14170153/syntaxerror-unterminated-string-literal-strange-error – Subie
缺少a}不是嗎? – DMart