简体   繁体   中英

Browser FireFox is hidden when selenium webdriver tests run

I use TeamCity as Continuous Integration and Selenium Webdriver tests written in Java code. When I launch my tests, they all seem to run (becaue in TC it shows the final passed/failed number of tests), but I don't see any FireFox browser on the TeamCity Agent machine, where they run.

I check the processes tab in task manager and can see the firefox.exe -foreground process started, but don't see any browser in UI

How can I enable browser to display when I log in with my_admin_user?

NOTE: the TC agent service is started with "Log on as: my_admin_user"

If TeamCity Agent run as service on machine it uses 'background' desktop to run FF (as I understood all services do the same). You need to start agent manually from cmd.

I have an simmilar issue, my tests fail on TC agent - they can't open url in chrome, but when I'm running them on local machine they work fine.

  1. Enable and start interctive service.
  2. Open Teamcity agent services and services Go to Properties-> Logon tab and select checkbox "Allow service to intect with Desktop"...

You will get a interctive seiver popup nexttime asking to allow to run on desktop.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM