Chrome Webdriver on Mac not opening in foreground

266 views
Skip to first unread message

Alex E

unread,
Feb 12, 2016, 11:34:14 PM2/12/16
to Selenium Users
Hi all, I've got a pretty basic selenium script (python) that launches a chrome browser:

web_driver = webdriver.Chrome(chrome_options=chromeOptions)
web_driver.maximize_window()

I run the test via py.test and PyCharm. I run the code on a windows machine and the browser window pops into the foreground as usual, so I can watch the automation run. 

But on my Mac, OS X El Capitan, same PyCharm version, when I run the same code, the browser launches in the background, so I have to go the dock and bring it manually to the foreground.

No idea if this is a El Capitan issue, a PyCharm issue, etc. Any ideas?? Many thanks 

-Alex

Greg Meece

unread,
Apr 15, 2016, 1:56:38 AM4/15/16
to Selenium Users
Alex - I've seen the same on my Mac at home, using Python as well as Robot Framework. Same behavior on either Mavericks or El Capitan (just upgraded). Let me know if you find a solution!

The information in this email may be confidential and/or privileged. This email may be reviewed only by the intended recipient named above. Any review, use or disclosure of the information contained in this email, or any attachments by anyone other than the intended recipient, is prohibited. If you have received this email in error, please immediately notify the sender and permanently delete this email from your system.

Reply all
Reply to author
Forward
0 new messages