79128530

Date: 2024-10-26 12:34:23
Score: 1
Natty:
Report link

The problem is solved! I think there is some difference between environment variables Windows 7 and Windows 10. I got the idea from this this post and the problem is solved!

driver = new ChromeDriver(@"c:\chromedriver.exe");

I copied the chromedriver.exe to some specific place and called it directly. I replaced the code I mentioned in the question with above code and chrome driver is working fine.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vahid