My current challenge involves navigating to a webpage, locating a link to another page within it, and proceeding to that link without using javascript.
One approach I've considered involves the following method:
options = Options()
options.add_experimental_option("prefs", {
"profile.managed_default_content_settings.javascript": 2
})
However, this method disables javascript for all pages, which is not ideal. Creating multiple driver instances and switching between them proves to be too time-consuming and resource-intensive.
Do you have any suggestions on how to selectively disable javascript on a specific page?