Been looking in the internet for this issue, without finding something that can solve it.
I am using Selenium to access a webpage using ChromeDriver. Everything's working fine, until I try to execute JS-script in console:
browser.execute_script('javascript:__doPostBack(\'ctl00$BodyRegion$PageRegion$MainRegion$Loginlink\',\'\')')
This works fine when I'm trying to run it on my browser. But in Selenium, I keep getting this error:
selenium.common.exceptions.JavascriptException: Message: javascript error: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them (Session info: headless chrome=95.0.4638.54)
Does this mean the issue is in the webpage or Selenium/Chromedriver?
Any help is appreciated!
from Properties may not be accessed on strict mode
No comments:
Post a Comment