I was trying to open another tab using undetected chrome driver in python. I found that when I use the javascript way chrome blocks my pop-up. I can't figure out what I'm doing wrong. Here's my code.
options = webdriver.ChromeOptions()
options.add_argument('--disable-popup-blocking')
if __name__ == '__main__':
chrome = uc.Chrome(options=options)
time.sleep(1)
chrome.get("https://www.google.com")
chrome.execute_script("window.open('https://google.com','_blank')")