Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Can't see the test browser
Permanently deleted user
Created
Hi, I run selenium with webdriver but I do not see the browser while running the test in TeamCity how can I change so I can see the browser that opened during the test.
I'm afraid that seeing the browser is usually not an option. It might be depending on how you are running the agent, if you run it from a command line console it's not impossible that the browser shows up in that same session. If you are looking to see the tests running on the browser, a typical approach in CI is to have your tests take screenshots of the results and then add those screenshots to the results to understand what happened during the build.
as I already mentioned, if you run the build agent from a command line console in the same session, then you might be able to see it happen. Often, the build agent is run as a service, which stops that from happening.
If you are running the Teamcity build agent as a Windows Service, go to the Windows "Services" panel and stop it. Then open a command line at the folder where the build agent is installed, access the "bin" folder and run "agent.bat start". Don't close any of the terminals being opened up.
Run the build in that specific agent (in case you have more than one). That should run the build in that same session so the browser can be opened and visible.
Hi Meir,
I'm afraid that seeing the browser is usually not an option. It might be depending on how you are running the agent, if you run it from a command line console it's not impossible that the browser shows up in that same session. If you are looking to see the tests running on the browser, a typical approach in CI is to have your tests take screenshots of the results and then add those screenshots to the results to understand what happened during the build.
Thanks for the response, but I saw a guy running the test the same way through the CI and the browser opened.
https://www.youtube.com/watch?v=1mX2NjwSRX8
Hi Meir,
as I already mentioned, if you run the build agent from a command line console in the same session, then you might be able to see it happen. Often, the build agent is run as a service, which stops that from happening.
Hi,
I'm pretty new in this area, can you explain to me how I run the test so i can see the browser?
Hi Meir,
If you are running the Teamcity build agent as a Windows Service, go to the Windows "Services" panel and stop it. Then open a command line at the folder where the build agent is installed, access the "bin" folder and run "agent.bat start". Don't close any of the terminals being opened up.
Run the build in that specific agent (in case you have more than one). That should run the build in that same session so the browser can be opened and visible.
Hi Denis,
thank you, thank you, thank you.
You're a lifesaver, got this issue for a long time.