0

How do you set the browser locale to different languages in a C#project using Selenium Web driver?

Use case: once I complete test execution on English language I want to set/change locale to let’s say German language and then rerun all cases once again.

Any information on this will be highly appreciated. I need to do this on Internet Explorer

Dhara
  • 6,587
  • 2
  • 31
  • 46

1 Answers1

0

I don't know C# but here is a suggestion. You might modify this setting in the register programmatically with C#. I've seen it done in Java, so I guess it is also possible to do it in C#.

The regedit key is:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\International

and the parameter is AcceptLanguage (see Microsoft KB)

Community
  • 1
  • 1
Insac
  • 1