I',m having an issue where for a specific instance of our software, the page just doesn't load when I run headless. It works on others but not there. As it is headless I can't check the console to see if it's upset by something there. Is there a way to get the browser's console output?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
UghCurrently there is not a out of the box keyword in the SeleniumLibrary, but the good news is that one can do by extending SeleniumLibrary. In the Python Selenium API, there is a get_log [1] method, which allows one to collect the logs from many sources. The bad news is that not all browsers has support for the method, but last time I did try Chrome had the best support. There is documentation [2] for extending the SeleniumLibrary and user guide [3] contains lots of good information about libraries and extending other libraries.[2] https://github.com/robotframework/SeleniumLibrary/blob/master/docs/extending/EXTENDING_SELENIUMLIBRARY.rst-Tatu
Send from my mobile[1] selenium.webdriver.remote.webdriver.WebDriver.get_log
On Fri, 18 May 2018, 20:43 , <kepp...@networkoptix.com> wrote:
I',m having an issue where for a specific instance of our software, the page just doesn't load when I run headless. It works on others but not there. As it is headless I can't check the console to see if it's upset by something there. Is there a way to get the browser's console output?--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
I tried using your suggestion but I'm having an issue. The documentation claims I should only need one argument "browser" but first of all it claims to want the webdriver instance. When I feed it the webdriver it then wants a second argument. Am I mistaken or is the documentation unclear?
On Friday, May 18, 2018 at 2:30:02 PM UTC-7, Tatu Aalto wrote:
UghCurrently there is not a out of the box keyword in the SeleniumLibrary, but the good news is that one can do by extending SeleniumLibrary. In the Python Selenium API, there is a get_log [1] method, which allows one to collect the logs from many sources. The bad news is that not all browsers has support for the method, but last time I did try Chrome had the best support. There is documentation [2] for extending the SeleniumLibrary and user guide [3] contains lots of good information about libraries and extending other libraries.[2] https://github.com/robotframework/SeleniumLibrary/blob/master/docs/extending/EXTENDING_SELENIUMLIBRARY.rst-Tatu
Send from my mobile[1] selenium.webdriver.remote.webdriver.WebDriver.get_log
On Fri, 18 May 2018, 20:43 , <kepp...@networkoptix.com> wrote:
I',m having an issue where for a specific instance of our software, the page just doesn't load when I run headless. It works on others but not there. As it is headless I can't check the console to see if it's upset by something there. Is there a way to get the browser's console output?--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
def get_browser_log(self): return webdriver.remote.webdriver.WebDriver.get_log('browser') ${console log} get browser log log ${console log}TypeError: unbound method get_log() must be called with WebDriver instance as first argument (got str instance instead)
def get_browser_log(self): return webdriver.remote.webdriver.WebDriver.get_log(webdriver.Chrome('<path to> chromedriver.exe'), 'browser')UghThere might be bug in your implementation. Would it be possible to see your code and perhaps we can correct the code?-Tatu
Send from my mobile
On Mon, 21 May 2018, 19:40 , <kepp...@networkoptix.com> wrote:
I tried using your suggestion but I'm having an issue. The documentation claims I should only need one argument "browser" but first of all it claims to want the webdriver instance. When I feed it the webdriver it then wants a second argument. Am I mistaken or is the documentation unclear?
On Friday, May 18, 2018 at 2:30:02 PM UTC-7, Tatu Aalto wrote:
UghCurrently there is not a out of the box keyword in the SeleniumLibrary, but the good news is that one can do by extending SeleniumLibrary. In the Python Selenium API, there is a get_log [1] method, which allows one to collect the logs from many sources. The bad news is that not all browsers has support for the method, but last time I did try Chrome had the best support. There is documentation [2] for extending the SeleniumLibrary and user guide [3] contains lots of good information about libraries and extending other libraries.[2] https://github.com/robotframework/SeleniumLibrary/blob/master/docs/extending/EXTENDING_SELENIUMLIBRARY.rst-Tatu
Send from my mobile[1] selenium.webdriver.remote.webdriver.WebDriver.get_log
On Fri, 18 May 2018, 20:43 , <kepp...@networkoptix.com> wrote:
I',m having an issue where for a specific instance of our software, the page just doesn't load when I run headless. It works on others but not there. As it is headless I can't check the console to see if it's upset by something there. Is there a way to get the browser's console output?--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
I have my own custom library and I've tried putting this in both my library and seleniumlibrary. I feel like there has to be something wrong with my implementation.
def get_browser_log(self):return webdriver.remote.webdriver.WebDriver.get_log('browser')Calling the keyword:${console log} get browser loglog ${console log}
Running my test with this gives this error:TypeError: unbound method get_log() must be called with WebDriver instance as first argument (got str instance instead)
I have been able to satisfy the requirements:
UghThere might be bug in your implementation. Would it be possible to see your code and perhaps we can correct the code?-Tatu
Send from my mobile
On Mon, 21 May 2018, 19:40 , <kepp...@networkoptix.com> wrote:
I tried using your suggestion but I'm having an issue. The documentation claims I should only need one argument "browser" but first of all it claims to want the webdriver instance. When I feed it the webdriver it then wants a second argument. Am I mistaken or is the documentation unclear?
On Friday, May 18, 2018 at 2:30:02 PM UTC-7, Tatu Aalto wrote:
UghCurrently there is not a out of the box keyword in the SeleniumLibrary, but the good news is that one can do by extending SeleniumLibrary. In the Python Selenium API, there is a get_log [1] method, which allows one to collect the logs from many sources. The bad news is that not all browsers has support for the method, but last time I did try Chrome had the best support. There is documentation [2] for extending the SeleniumLibrary and user guide [3] contains lots of good information about libraries and extending other libraries.[2] https://github.com/robotframework/SeleniumLibrary/blob/master/docs/extending/EXTENDING_SELENIUMLIBRARY.rst-Tatu
Send from my mobile[1] selenium.webdriver.remote.webdriver.WebDriver.get_log
On Fri, 18 May 2018, 20:43 , <kepp...@networkoptix.com> wrote:
I',m having an issue where for a specific instance of our software, the page just doesn't load when I run headless. It works on others but not there. As it is headless I can't check the console to see if it's upset by something there. Is there a way to get the browser's console output?--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
So, it all is working now, thank you. However, it hasn't solved the problem of why I needed the console log. Is there a way to get the network tab logs?
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.To post to this group, send email to robotframework-users@googlegroups.com.