0
from selenium import webdriver

driver = webdriver.Chrome(options=chrome_options)
driver.get(my_website)

The above code opens my website but only after loading a tab with the title data:, for a second or two. How do I hide it?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352

1 Answers1

0

Your code successfully opens the website properly through after loading a tab with the title data:, for a second or two, is perfectly fine.

The main concern is, your program shouldn't be stuck with data:, in the url bar. Incase this situation happens the simplest solution would be to:

  • Check if the url is properly formatted. As an example, you have mentioned the protocol along with the actual url as follows:

    http://localhost:3000
    
  • You are using compatibile version of binaries in terms of Google Chrome Browser and ChromeDriver


References

You can find a couple of relevant discussions in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352