My dilemma involves a boolean JavaScript variable called foo
, which is currently set to true but I need it changed to false. This particular variable has the advantage of having global scope.
When using Selenium, what is the most effective method for altering the value of this variable?
(The purpose of this variable, unbeknownst to the user, is to disable a CPU-intensive feature that can cause Selenium to become sluggish.)