【发布时间】:2014-06-19 02:20:52
【问题描述】:
我需要在页面上执行一个 javascript 函数,方法是向它传递一个字符串数组。我想避免拨打browser.execute_script 的次数。
list_of_strings = ['a','b','c']
#js code runs through all the strings
result = browser.execute_script("function findTexts(textList){//code here}", list_of_strings)
【问题讨论】:
标签: javascript python splinter