Angularjs 使用RobotFramework键入文本后出现Webdriver异常

Angularjs 使用RobotFramework键入文本后出现Webdriver异常,angularjs,robotframework,selenium2library,Angularjs,Robotframework,Selenium2library,我正在测试用angularjs编写的应用程序。当我想使用“Input Text”关键字登录时,会出现异常: 12:13:13.201 INFO Typing text 'user@123123.com' into text field '//label[contains(@ng-class,'username')]/input[@id='input-username']' 12:13:14.676 FAIL WebDriverException: Message: javascript err

我正在测试用angularjs编写的应用程序。当我想使用“Input Text”关键字登录时,会出现异常:

12:13:13.201 INFO Typing text 'user@123123.com' into text field '//label[contains(@ng-class,'username')]/input[@id='input-username']' 
12:13:14.676 FAIL WebDriverException: Message: javascript error: $ is not defined
JavaScript stack:
ReferenceError: $ is not defined
at eval (eval at executeAsyncScript (unknown source), <anonymous>:2:366)
at Browser.self.notifyWhenNoOutstandingRequests (http://localhost:8000/app/bower_components/angular/angular.js:5757:7)
at eval (eval at executeAsyncScript (unknown source), <anonymous>:2:323)
at eval (eval at executeAsyncScript (unknown source), <anonymous>:2:439)
at executeAsyncScript (<anonymous>:329:26)
at apply.ELEMENT (<anonymous>:345:29)
at callFunction (<anonymous>:237:33)
at apply.ELEMENT (<anonymous>:247:23)
at <anonymous>:248:3
  (Session info: chrome=52.0.2743.116)
  (Driver info: chromedriver=2.22.397933 (1cab651507b88dec79b2b2a22d1943c01833cc1b),platform=Windows NT 10.0.10586 x86_64) 
12:13:13.201信息输入文本'user@123123.com'输入文本字段'//label[包含(@ng class,'username')]/input[@id='input-username']
12:13:14.676失败WebDriverException:消息:未定义javascript错误:$
JavaScript堆栈:
ReferenceError:$未定义
at eval(eval at executeAsyncScript(未知源),:2:366)
在Browser.self.notifywhennoutstandingsrequests处(http://localhost:8000/app/bower_components/angular/angular.js:5757:7)
at eval(eval at executeAsyncScript(未知源),:2:323)
at eval(eval at executeAsyncScript(未知源),:2:439)
在executeAsyncScript(:329:26)
在apply.ELEMENT处(:345:29)
在调用函数时(:237:33)
在apply.ELEMENT处(:247:23)
电话:248:3
(会话信息:chrome=52.0.2743.116)
(驱动程序信息:chromedriver=2.22.397933(1CAB651507B88DEC79B2A22D1943C01833CC1B),平台=Windows NT 10.0.10586 x8664)
它在前一段时间工作正常,但现在仍然失败。是RF(图书馆)问题还是角度问题

我也尝试过更新chromedriver和chrome

更多事实: 1.其他应用程序上的当前配置一切正常, 2.相同的配置在另一台计算机上运行良好, 3.我甚至不能在Firefox上运行它-我收到消息:WebDriverException:消息:无法加载配置文件。配置文件目录:%s如果您在FirefoxBinary构造函数中指定了日志文件,请检查它以了解详细信息


可能是由于某些系统更新(windows 10)造成的?但是,正如我所提到的,在其他应用程序上的测试可以很好地工作。

好的,我已经发现了问题并暂时解决了它。基本上,我必须回到旧版本ExtendedSelenium2Library(0.4.13)。但我不知道它对当前的测试有何影响。

您是否尝试过其他浏览器,如Firefox?错误来自Webdriver。@Helio,我甚至无法在Firefox上运行它-我收到消息:ebDriverException:消息:无法加载配置文件。配置文件目录:%s如果您在FirefoxBinary构造函数中指定了日志文件,请检查它以了解详细信息。更多事实:1。在不同的应用程序上进行配置,一切正常,2。同样的配置在另一台计算机上运行良好。Selenium wedriver的兼容性也取决于ff、chrome和ie vesion。并不是所有的东西都与其他东西兼容。