Relative Content

Tag Archive for c#selenium-webdriverselenium-chromedriver

C# Selenium Stale Reference Exceptiononly on Compiled source

I’m using Selenium Webdriver on a C# console app utilising Chrome for Testing binary 118 selenium 4.25 and getting a stale reference exception but only when running the compiled App. When debugging through visual studio the app is working absolutely fine. I can only assume that the DOM is refreshed much quicker when running outside of VS2022 which is causing the error but this is a complete guess.

Selenium Chromdriver Tests on TeamCity is loading indefinitely

I want to run my Selenium test in TeamCity and I’m using ChromeDriver for initialization. When I click “run” in TeamCity, the test starts loading but as soon as it reaches the ChromeDriver in the setup the build just keeps loading indefinitely and nothing happens. There is no error message it just keeps loading and it seems like it doesn’t enter the test. Strangely it works fine locally. It’s coded in C#.

C# selenium Chrome options for user data not working

I am building a selenium app, and it is supposed to start some websites (of course), and i want to make that chrome have data so user doesn’t have to log in and stuff. So i put this code from ChatGPT (i guess not my best idea):