Angularjs 无法使用selenium和phantomjs找到元素
我想用selenium和phantomJs驱动程序测试AngularJs构建的应用程序,但出现以下错误:Angularjs 无法使用selenium和phantomjs找到元素,angularjs,maven,selenium,phantomjs,Angularjs,Maven,Selenium,Phantomjs,我想用selenium和phantomJs驱动程序测试AngularJs构建的应用程序,但出现以下错误: [ERROR - 2016-06-27T09:42:57.040Z] Session [87123530-3c4b-11e6-bbdd-eb6d6096f6c5] - page.onError - msg: Error: [$injector:modulerr] Failed to instantiate module Main due to: ReferenceError:找不到变量:S
[ERROR - 2016-06-27T09:42:57.040Z] Session [87123530-3c4b-11e6-bbdd-eb6d6096f6c5] - page.onError - msg: Error: [$injector:modulerr] Failed to instantiate module Main due to:
ReferenceError:找不到变量:Set
在
它适用于Firefox WebDriver,但不适用于PhantomJS WebDriver 这可能是因为PhantomJS,或者至少是您正在使用的PhantomJS版本,不支持JavaScript ES6 在JavaScript ES6中,定义了
Set
,但在旧版本中没有定义