You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to capture console.log messages with Selenium and expose that to selenium2library? Dumping captured console.log would also be great addition to onError behavior.
Selenium Wiki mentions plans for this and inclusion in "Wire" protocol. Woul you know, are those already implemented and usable through selenium library?
It seems that Selenium Logging is implemented at least in Firefox WebDriver. It provides log types 'browser' and 'driver'. Yet, that command is not configured in python selenium bindings yet, but it must be manually configured.
Unfortunately, it seems that at least for FX this returns only 'Browser console' messages. Because it won't return messages from 'Web console' it's not very useful for debugging JS apps.
Activity
datakurre commentedon May 31, 2015
Selenium Wiki mentions plans for this and inclusion in "Wire" protocol. Woul you know, are those already implemented and usable through selenium library?
https://code.google.com/p/selenium/wiki/Logging
https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/log
datakurre commentedon May 31, 2015
In addition, gettin JS stacktrace would be nice, if it's possible.
datakurre commentedon May 31, 2015
It seems that Selenium Logging is implemented at least in Firefox WebDriver. It provides log types 'browser' and 'driver'. Yet, that command is not configured in python selenium bindings yet, but it must be manually configured.
Unfortunately, it seems that at least for FX this returns only 'Browser console' messages. Because it won't return messages from 'Web console' it's not very useful for debugging JS apps.
just-be-dev commentedon May 31, 2015
I've done some investigation into this myself, but I haven't figured anything out yet. I'll let you know if I come up with something.
aaltat commentedon Aug 20, 2017
I think this is now implemented by #863. If you disagree, please send an update.