I am using robotframework-seleniumlibrary 3.3.1 and robotframework-angularjs 0.0.9
KEYWORD AngularJSLibrary . Wait For Angular
Start / End / Elapsed: 20190228 19:29:18.938 / 20190228 19:29:18.965 / 00:00:00.027
19:29:18.938 TRACE Arguments: [ ]
19:29:18.939
DEBUG
POST
http://127.0.0.1:65348/session/aabc7807fd97105c5c919e6f57c26dfb/execute {"script": "\n var waiting = true;\n var callback = function () {waiting = false;}\n var el = document.querySelector(arguments[0]);\n if (window.angular && !(window.angular.version &&\n window.angular.version.major > 1)) {\n /* ng1 */\n angular.element(el).injector().get('$browser').\n notifyWhenNoOutstandingRequests(callback);\n } else if (window.getAngularTestability) {\n return !window.getAngularTestability(el).isStable(callback);\n } else if (window.getAllAngularTestabilities) {\n throw new Error('AngularJSLibrary does not currently handle ' +\n 'window.getAllAngularTestabilities. It does work on sites supporting ' +\n 'window.getAngularTestability. If you require this functionality, please ' +\n 'the library authors or reach out to the Robot Framework Users Group.');\n } else if (!window.angular) {\n throw new Error('window.angular is undefined. This could be either ' +\n 'because this is a non-angular page or because your test involves ' +\n 'client-side navigation. Currently the AngularJS Library is not ' +\n 'designed to wait in such situations. Instead you should explicitly ' +\n 'call the \"Wait For Angular\" keyword.');\n } else if (window.angular.version >= 2) {\n throw new Error('You appear to be using angular, but window.' +\n 'getAngularTestability was never set. This may be due to bad ' +\n 'obfuscation.');\n } else {\n throw new Error('Cannot get testability API for unknown angular ' +\n 'version \"' + window.angular.version + '\"');\n }\n return waiting;\n", "args": ["[ng-app]"], "sessionId": "aabc7807fd97105c5c919e6f57c26dfb"}
19:29:18.957
DEBUG
http://127.0.0.1:65348 "POST /session/aabc7807fd97105c5c919e6f57c26dfb/execute HTTP/1.1" 200 311
19:29:18.957 DEBUG Finished Request
19:29:18.964 FAIL WebDriverException: Message: unknown error: Cannot read property 'get' of undefined
(Session info: headless chrome=72.0.3626.119)
(Driver info: chromedriver=72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38),platform=Windows NT 10.0.17134 x86_64)
19:29:18.965 DEBUG Traceback (most recent call last):
File "c:\users\lgutr\appdata\local\programs\python\python36\lib\site-packages\AngularJSLibrary\__init__.py", line 206, in wait_for_angular
.until_not(lambda x: self._s2l._current_browser().execute_script(js_wait_for_angular, self.root_selector))
File "c:\users\lgutr\appdata\local\programs\python\python36\lib\site-packages\selenium\webdriver\support\wait.py", line 88, in until_not
value = method(self._driver)
File "c:\users\lgutr\appdata\local\programs\python\python36\lib\site-packages\AngularJSLibrary\__init__.py", line 206, in <lambda>
.until_not(lambda x: self._s2l._current_browser().execute_script(js_wait_for_angular, self.root_selector))
File "c:\users\lgutr\appdata\local\programs\python\python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 636, in execute_script
'args': converted_args})['value']
File "c:\users\lgutr\appdata\local\programs\python\python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "c:\users\lgutr\appdata\local\programs\python\python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)