Set browser language to Polish in tests
Added "--lang=pl" argument to ChromeOptions for setting the browser language to Polish. This ensures consistency for tests requiring localization in Polish.
This commit is contained in:
1 parent
68a368ca2d
commit
9959fd42b8
1 file changed
+1
@@ -22,6 +22,7 @@ public class Hooks {
|
|||||||
|
|
||||||
ChromeOptions options = new ChromeOptions();
|
ChromeOptions options = new ChromeOptions();
|
||||||
options.addArguments("--incognito");
|
options.addArguments("--incognito");
|
||||||
|
options.addArguments("--lang=pl");
|
||||||
Configuration.browserCapabilities = options;
|
Configuration.browserCapabilities = options;
|
||||||
|
|
||||||
Configuration.browser = "chrome";
|
Configuration.browser = "chrome";
|
||||||
|
|||||||
Reference in new issue
Block a user