Node.js 差异量角器.controlFlow().execute和browser.call()的差异

Node.js 差异量角器.controlFlow().execute和browser.call()的差异,node.js,selenium,selenium-webdriver,webdriver,protractor,Node.js,Selenium,Selenium Webdriver,Webdriver,Protractor,我理解,要将自定义函数插入到量角器控制流中,您可以使用dragrator.controlFlow().execute,如下所示: 量角器.promise.controlFlow().execute(函数()){ 返回getData().then(函数(my_数据){ 返回我的_数据。某些_进程(); }); });

我理解,要将自定义函数插入到量角器控制流中,您可以使用dragrator.controlFlow().execute,如下所示:

量角器.promise.controlFlow().execute(函数()){
返回getData().then(函数(my_数据){
返回我的_数据。某些_进程();
});
});