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
File "/home/openwpm/new_try_ext_neu/OpenWPM/automation/BrowserManager.py", line 407, in BrowserManager
browser_params, manager_params, extension_socket)
File "/home/openwpm/new_try_ext_neu/OpenWPM/automation/Commands/command_executor.py", line 21, in execute_command
File "/home/openwpm/new_try_ext_neu/OpenWPM/automation/Commands/browser_commands.py", line 153, in get_website
tab_restart_browser(webdriver)
File "/home/openwpm/new_try_ext_neu/OpenWPM/automation/Commands/browser_commands.py", line 137, in tab_restart_browser
webdriver.execute_script("window.open('')")
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 543, in execute_script
'args': converted_args})['value']
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: TypeError: window.open is not a function
I guess the visited website (I did not track the exact website down) overrode window.open() function. Thus, the platform cannot call the function and aborts the crawl.
This is likely the same issue as #280. I'd rather us not have to mess with page script level code to fix this. We should revisit the methods available to us through Selenium to control browser tabs.
Hi,
In one of my crawls the crawler crashed with the following exception: (the line numbers do not match this repo as I adjusted the platform to my needs. The relevant code is https://github.com/mozilla/OpenWPM/blob/e095344a1343cecd31be126941278efd0dae618c/automation/Commands/browser_commands.py#L99):
I guess the visited website (I did not track the exact website down) overrode window.open() function. Thus, the platform cannot call the function and aborts the crawl.
Maybe the function should be backed up in some way (e.g., https://stackoverflow.com/questions/48006527/restore-native-window-method).
The text was updated successfully, but these errors were encountered: