Chromedriver Issue
Answered
Hello,
I'm quite new in the TC world.. we have series of tests running with Selenium via TC which at some part should use the chromedriver to integrate with chrome browser.
At first it was not finding the chrome binary, after installing chrome and chromedriver (latest versions) on the agent machine, as we are initiating the tests from a remote server, it constantly keeps failing with the following error (at the end) *also while running the command of chromedriver --whitelisted-ips={server address}.
Not sure if that's related to the chromedriver itself, perhaps something with the TC config or somewhere else. Could someone kindly assist with the issue?
Error part of the build log:
[15:38:20][Step 3/4] Error Message:
[15:38:20][Step 3/4]
[15:38:20][Step 3/4] Initialization method AutRepositoryGeneralTests.Modules.General.Integrations.UtPropertyPaneIntegrationsCreate.Init threw exception. OpenQA.Selenium.WebDriverTimeoutException: OpenQA.Selenium.WebDriverTimeoutException: Timed out after 10 seconds.
[15:38:20][Step 3/4] Stack Trace:
[15:38:20][Step 3/4] at OpenQA.Selenium.Support.UI.DefaultWait`1.ThrowTimeoutException(String exceptionMessage, Exception lastException)
[15:38:20][Step 3/4] at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)
[15:38:20][Step 3/4] at AutRepositoryGeneralTests.Common.ComponentReady.FindClickableElements(IWebDriver WebDriverPage, By by, Int32 timeoutInSeconds) in C:\TeamCity\buildAgent\work\ed8698619c276af0\Aut\AutRepositoryGeneralTests\AutRepositoryGeneralTests\Common\ComponentReady.cs:line 26
[15:38:20][Step 3/4] at AutRepositoryGeneralTests.Modules.General.Integrations.UtPropertyPaneIntegrationsCreate.Init() in C:\TeamCity\buildAgent\work\ed8698619c276af0\Aut\AutRepositoryGeneralTests\AutRepositoryGeneralTests\Configuration\Modules\Integrations\UtPropertyPaneIntegrationsCreate.cs:line 20
[15:38:20][Step 3/4] Starting ChromeDriver 2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab) on port 52422
[15:38:20][Step 3/4] Only local connections are allowed.
[15:38:39][Step 3/4] Failed BmcRemedyCreate_Success_LocalModeOneInstanceFromPaneWithMappingStaticSeverityCustomizedState
Thaks in advance!
Please sign in to leave a comment.
Hi Andrey,
if you are trying to run UI tests but running the teamcity build agent as a service, which is the most common scenario, you might want to check the windows service limitations in that regard: https://www.jetbrains.com/help/teamcity/known-issues.html#KnownIssues-AgentrunningasWindowsServiceLimitations
I cannot currently confirm that your issue is exactly that one, as I'm not particularly familiar with selenium either. Should that not be the case, there is some troubleshooting hints here: https://www.jetbrains.com/help/teamcity/common-problems.html#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity . Basically, there is a difference between your development environment and your teamcity build agent environment, and that is causing the difference in behavior. Identifying that difference is the relevant part.
Thank you! Seems like very relevant references) Would try that all out.