简体   繁体   中英

How to set and get browser language and regional setting in coded ui c# automation, while launching browser?

I have project which has been deployed globally. SO in every country there is different language.

I have requirement in our project to run automation in different browser language culture eg germany,Uk,canada,US etcs.

I wanted to set browser related setting before launching application in automation.

How can I set it using c# code and how can i get all browser information?

Assuming you're using Internet Explorer and Windows 7 or 8 the default language can be set through command line after applying one or more language packs to the Windows image. Running command line in C# was answered in a previous question .

System.Diagnostics.Process.Start("PathToEXE\intlcfg.exe –genlangini –dist:C:\windows_distribution -image:C:\wim_mount –defaultlang:en-US -f");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM