2015-06-16 28 views
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 
    +"');"); 
+0

http: //stackoverflow.com/questions/14170153/syntaxerror-unterminated-string-literal-strange-error – Subie

+0

缺少a}不是嗎? – DMart

回答

0

刪除此以往,我發現它在一些JavaScript編輯器,我這樣做是在Adobe Dreamweaver中打開你的腳本,它尖釘的最佳方式實際上問題所在的線路,我解決了這個問題