Replies: 1 comment
-
You need the sb.execute_script("function getStaticValue() {return '42';} return getStaticValue()") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know how to execute JS code with seleniumbase (the equivalent of executing commands in the browser console of a webpage). I tried a couple of different approaches, but did not succeed. Bellow is an example code snippet I tried, but It returns None value for some reason.
Could you please explain how to correctly execute JS with seleniumbase, and if possible, direct me in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions