(UC Mode) sb.open_new_window() leads to "Enhanced ad privacy in Chrome" pop-up
Currently, open_new_window() calls driver.switch_to.new_window("tab") to open a new window and switch to it, but that leads to the issue. Easy to get around that by using driver.execute_script("window.open('');") instead, and then calling sb.switch_to_newest_window() after that. sb.open_new_window() can be modified to use the execute_script way in UC Mode to avoid the issue.
(UC Mode)
sb.open_new_window()
leads to "Enhanced ad privacy in Chrome" pop-upCurrently,
open_new_window()
callsdriver.switch_to.new_window("tab")
to open a new window and switch to it, but that leads to the issue. Easy to get around that by usingdriver.execute_script("window.open('');")
instead, and then callingsb.switch_to_newest_window()
after that.sb.open_new_window()
can be modified to use theexecute_script
way in UC Mode to avoid the issue.