Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Services
    • Conferences
    • Courses
    1. Home
    2. user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    user

    @user

    0
    Reputation
    1
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    user Follow

    Best posts made by user

    This user hasn't posted anything yet.

    Latest posts made by user

    • RE: How can I run a selenium webdriver as a background process in Python?

      If you are using chrome driver you can do that by adding headless to the browser options like so:

      from selenium import webdriver
      
      options = webdriver.ChromeOptions()
      
      options.add_argument('--headless')
      
      
      with webdriver.Chrome(options=options) as browser:
      
             browser.get(url)
             # # Do other stuff
      

      or

      from selenium import webdriver
      
      options = webdriver.ChromeOptions()
      
      options.add_argument('--headless')
      
      browser = webdriver.Chrome(options=options) 
      
      browser.get(url)
      
      # # do things
      
      browser.close()
      
      posted in Automated Testing
      user
      user