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
I am using the plugin with Selenium and Firefox 65 in python.
The HAR harvest script is working if I am able to get any response from remote http server.
However, if the site is unreachable such as experiencing gateway timeout then HAR.triggerExport() cannot be called.
My goal is to continuous monitoring http accessibility for further analysis, so it's important to export HAR no matter if the site is reachable or not.
May I know if it's possible to capture HAR in every situation?
Here is the trace when site is not available: /Users/Tempo/PycharmProjects/SeleniumTest/venv/bin/python /Users/Tempo/PycharmProjects/SeleniumTest/TimeOutTest.py Traceback (most recent call last): File "/Users/Tempo/PycharmProjects/SeleniumTest/TimeOutTest.py", line 51, in <module> har_dict['log'] = ast.literal_eval(browser.execute_script(HAR_HARVEST)) File "/Users/Tempo/PycharmProjects/SeleniumTest/venv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script 'args': converted_args})['value'] File "/Users/Tempo/PycharmProjects/SeleniumTest/venv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/Users/Tempo/PycharmProjects/SeleniumTest/venv/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.JavascriptException: Message: ReferenceError: HAR is not defined
The text was updated successfully, but these errors were encountered:
I am using the plugin with Selenium and Firefox 65 in python.
The HAR harvest script is working if I am able to get any response from remote http server.
However, if the site is unreachable such as experiencing gateway timeout then HAR.triggerExport() cannot be called.
My goal is to continuous monitoring http accessibility for further analysis, so it's important to export HAR no matter if the site is reachable or not.
May I know if it's possible to capture HAR in every situation?
Here is the trace when site is not available:
/Users/Tempo/PycharmProjects/SeleniumTest/venv/bin/python /Users/Tempo/PycharmProjects/SeleniumTest/TimeOutTest.py Traceback (most recent call last): File "/Users/Tempo/PycharmProjects/SeleniumTest/TimeOutTest.py", line 51, in <module> har_dict['log'] = ast.literal_eval(browser.execute_script(HAR_HARVEST)) File "/Users/Tempo/PycharmProjects/SeleniumTest/venv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script 'args': converted_args})['value'] File "/Users/Tempo/PycharmProjects/SeleniumTest/venv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/Users/Tempo/PycharmProjects/SeleniumTest/venv/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.JavascriptException: Message: ReferenceError: HAR is not defined
The text was updated successfully, but these errors were encountered: