Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8020369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:40:37+00:00 2026-06-04T21:40:37+00:00

Currently on OSX Selenium driver start opens up a new Firefox icon on OSX.

  • 0

Currently on OSX Selenium driver start opens up a new Firefox icon on OSX. Also, the current application loses focus and thus interrupts e.g. your typing.

Is it possible to make Selenium launch Firefox on OSX such way that it would not take focus or cause extra action in Dock?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:40:38+00:00Added an answer on June 4, 2026 at 9:40 pm

    You can easily modify Firefox so it does not appear in the dock.

    In Finder, right-click the Firefox app icon and choose Show Package Contents. Then open the Contents folder and edit Info.plist using Property List Editor (comes with XCode) or BBEdit/TextWrangler. Right at the beginning of the file add a key LSUIElement with a value of <true/>. In BBEdit/TextWrangler the beginning of the file would look like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>LSUIElement</key>
        <true/>
    

    In Property List Editor, right-click any key and choose Show Raw Keys/Values, then right-click the top-level entry (“Information Property List”) and choose Add Row. Specify LSUIelement for the value of this item and mark the checkbox.

    I suggested using Property List Editor or BBEdit/TextWrangler instead of some other editor because most .plist files are in a binary format theses days, and those tools can handle binary .plists. Other text editors will just display gibberish. However, I should mention that you can convert the Info.plist file to text using the plutil command line utility, e.g.:

    plutil -convert xml1 /Applications/Firefox.app/Contents/Info.plist
    

    Then you can edit it in any text editor you like. You don’t even have to convert it back to binary afterward; the text format will actually work fine.

    Anyway, save the info.plist file and close and relaunch Firefox. The icon (and menu bar) will now be gone. (No, it’s not possible to show the menu bar but hide the icon, but I don’t think this will bother Selenium.)

    On to your second question: it’s technically possible to launch an application without giving it focus. For example, this Applescript launches Firefox and gets the list of windows, but does not send the activate message that would bring it to the front.

    tell application "Firefox" to get windows
    

    You can send any message; the get windows part is just a do-nothing for our purposes. The point is, you have to send Firefox some message to get it to launch (AppleScript knows you can’t send messages to apps that aren’t running, so it launches it for you, but in the background).

    Now I’m not sure sure how Selenium launches browsers, but it may be possible to modify it to launch Firefox using the osascript command line tool or something of that nature, and use the above command.

    osascript -e 'tell application "Firefox" to get windows'
    

    I’ll leave it to you to put those pieces together…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently testing a new version of an app of mine on OSX 10.5
I'm working on an image viewer application (OSX) and currently it can load and
I'm trying to identify which OSX application is currently active. I understand that in
i'm currently using rvm and unicorn for server management under osx lion. i also
I'm currently working on a cross-platform application (Win/OSX/iOS) which has a C++ (with Boost)
I'm currently using the OSX app LiveReload v2.1. It watches and compiles my HAML
I am currently working through the famous Cocoa Programming for OSX by Aaron Hillegaas.
Currently, I have a GWT based application /app.htm It displays an openId login button
I'm currently working on an application which keeps tracks of cats and their associated
I'm using TextMate 1.5.10 (Mac OSX 10.7.2) to write a perl modulino application .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.