Message: SyntaxError: unterminated string literal

 

#Message: SyntaxError: unterminated string literal
mytxt = words.replace('\n','').replace('\r','')

js = '%s%s%s' % ('document.getElementsByTagName("textarea")[0].value="', mytxt, '"')
browser.execute_script(js)


posted @ 2018-01-08 17:03  papering  阅读(298)  评论(0编辑  收藏  举报