-1

Python Selenium is opening a tab but not the link as shown in the given image

It is the code of my simple program

The issue is that when I run it in Linux, it does not open the link as shown in this image

Here is the image when the program run terminal:- here you go

Thanks for your time

HoldOffHunger
  • 18,769
  • 10
  • 104
  • 133
Abhishek
  • 11
  • 3

1 Answers1

1

Can you please try below solution :

   from selenium import webdriver
    while True:
        driver =  webdriver.Firefox(executable_path="/usr/local/bin/geckodriver")
        driver.get("http://google.com/")
        driver.quit()
SeleniumUser
  • 4,065
  • 2
  • 7
  • 30